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.
Best Answer
Take a look at this Python program I wrote to see if it comes close to what you're looking for or can be adapted to your needs.