Unix/Linux simple log parser (since, until)
Posted
by dpb
on Server Fault
See other posts from Server Fault
or by dpb
Published on 2010-06-15T18:49:36Z
Indexed on
2010/06/15
18:53 UTC
Read the original article
Hit count: 213
Has anyone ever used/created a simple unix/linux log parser that can parse logs like the following:
timestamp log_message \n
Order the messages, parse the timestamp, and return:
- All messages
- Messages after a certain date (--since)
- Messages before a certain date (--until)
- Combination of --since, --until
I could write something like this, but wasn't sure if there was something canned. It would fit well in some automated reporting I'm planning on doing.
© Server Fault or respective owner