Quick Tip: Timestamping bash history

Here’s a tiny little snippet that I have in my .bashrc which really comes in handy when trying to figure out what I did on a system when. One of the first things I do when (eek) building out or working on a one-off machine (or setting up a …

more ...

Readable Nagios Log Timestamps

If you’re like me and most humans, the Nagios logfile timestamp (a unix timestamp) isn’t terribly useful when trying to grep through the logs and correlate events:

# head -2 nagios.log
[1350360000] LOG ROTATION: DAILY
[1350360000] LOG VERSION: 2.0

Here’s a nifty Perl one-liner that you …

more ...


My Birthday!

I happened to be working with some timestamps today and noticed that we’re starting to get into territory like 1234094400. So, being the geek that I am, I wondered when we’d finally hit 1234567890. The answer is 2009-02-13T18:31:30-05:00, which happens to be 18:31:30 …

more ...