The Parselogs cli tool
A simple log parser that searches a given string over a period of days and handles compressed files
Installation
gem install parselogs
Help output
SYNOPSIS
parselogs [global options] command [command options] [files...]
GLOBAL OPTIONS
-d, --days=days - number of days back to search (default: 1)
--help - Show this message
-s, --search=string - the string you are searching for (default: none)
--version
COMMANDS
all - Search all logs from locations provided
help - Shows a list of commands or help for one command
Sample Usage
parselogs --days 30 --search ctsimpson all /var/log/syslog*
Mulitple File Locations
Just separate out multiple folder locations as arguments at the end of the command
parselogs -d 60 -s ctsimpson all /var/log/*.log /tmp/*.log