Thu Nov 8 14:54:54 CST 2012

GELF2 timestamp to something human readable

I do this a lot, putting it here so I never have to remember how I did it: cat somegelflog | perl -e 'while(<>){m/timestamp.:(\d+)\./;print scalar localtime($1)," ",$_};'

Posted by arreyder | Permalink

Thu Nov 8 14:50:15 CST 2012

Get the IPv4 addr on a specific interface under Linux

I do this differently every time so I figured I'd make a note for myself here this time: `ip addr show dev eth1 | awk '/inet / {print $2}' | cut -d"/" -f1`

Posted by arreyder | Permalink