I hereby claim:
- I am faxm0dem on github.
- I am faxmodem (https://keybase.io/faxmodem) on keybase.
- I have a public key whose fingerprint is FC13 3209 34C3 4562 35EE C0E4 9108 5E13 86FE E825
To claim this, I am signing this object:
while DATE=$(date +%s); do syslog-ng-ctl stats | awk -vhost=$HOSTNAME -F\; 'NR!=1 && $1 != "src.none" {if ($2 == "") { t=$3 } else {t=$2} printf "PUTVAL %s/syslog_ng-%s/derive-%s %s:%s\n",host,t,$5,systime(),$6}'; sleep 10; done | socat - UNIX-CLIENT:/var/run/collectd/sock |
{ | |
"mappings" : { | |
"_default_" : { | |
"dynamic_templates" : [ | |
{ | |
"string_fields" : { | |
"match" : "*", | |
"match_mapping_type" : "string", | |
"mapping" : { | |
"index" : "not_analyzed", |
I hereby claim:
To claim this, I am signing this object:
<Plugin kstat> | |
<TypeMapping> | |
#kstat_statistic collectd_type | |
mem_inuse "memory" | |
writes "disk_ops" | |
</TypeMapping> | |
<Match> | |
Module "sd|vmem" | |
Statistic "disk_ops" | |
</Match> |
# Setup Logger (source: L<Log::Contextual/LOGGER CODEREF> | |
my @caller_info; | |
my $logref = sub { | |
chomp($_[0]); | |
warn "$_[0] at $caller_info[1] line $caller_info[2].\\n" | |
}; | |
my $var_log = Log::Contextual::SimpleLogger->new({ | |
levels_upto => LEVEL->[$opt->verbose], | |
coderef => $logref, | |
}); |
<Chain PreCache> | |
<Rule unquote> | |
<Match regex> | |
Plugin "^GenericJMX$" | |
</Match> | |
<Target replace> | |
PluginInstance "\"" "" | |
</Target> | |
</Rule> | |
</Chain> |
@1353079018/~(0)$ a=$(printf '\e]710;?\a') | |
@1353079038/~(0)$ echo $a | xxd | |
0000000: 1b5d 3731 303b 3f07 0a .]710;?.. | |
@1353079046/~(0)$ $a | |
bash: $'\E]710;?\a': command not found | |
@1353079049/~(0)$ |
# apparently combining INSTALL_BASE and INSTALLDIRS doesn't work (as with PREFIX+INSTALLDIRS): | |
# pwd | |
/tmp/pff/collectd-5.2.0/bindings/perl | |
# perl Makefile.PL PREFIX=/tmp/test INSTALLDIRS=vendor | |
Writing Makefile for Collectd | |
# make install | |
Skip blib/lib/Collectd/Plugins/OpenVZ.pm (unchanged) | |
Skip blib/lib/Collectd/Unixsock.pm (unchanged) | |
Skip blib/lib/Collectd/Plugins/Monitorus.pm (unchanged) | |
Skip blib/lib/Collectd.pm (unchanged) |
cd /tmp
wget -O- http://wwwftp.ciril.fr/pub/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz | tar xfz -
export PATH=/tmp/apache-maven-3.3.3/bin:$PATH
git clone https://github.com/logstash/log4j-jsonevent-layout
cd log4j-jsonevent-layout
mvn assembly:assembly
--- | |
syslog_ng::rewrite: | |
r_sdata_facter: | |
params: | |
- set: | |
- '"%{productname}"' | |
- value: '".SDATA.facter.productname"' | |
- set: | |
- '"%{osfamily}"' | |
- value: '".SDATA.facter.osfamily"' |