IronPort Access Log Date Format

adramis
adramis used Ask the Experts™
on
Hi. I am trying to decipher the timestamp in an IronPort Appliance Access Log. I don't see a recognizable date/time format, but the beginning of each line as a number similar to the following, and the sequence always increases:

1286972173.665
1286972175.200
1286972177.051

How do I convert that to a normal date/time format?

Thank you.

Richard
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
It's in "unix time", which is the number of seconds since Jan 1, 1970.

If you're on a system with perl, you can convert this with :
$ perl -e 'print localtime(1286972173)."\n"';
Wed Oct 13 05:16:13 2010

If you're on a system with GNU date, then :
$ date -d @1286972173
Wed Oct 13 05:16:13 PDT 2010

(These are converted in my timezone of PDT - the time will be a number of hours different if you're in a different timezone)

Author

Commented:
Just what I needed. I then found an online converter at http://www.onlineconversion.com/unix_time.htm.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial