osrfsys log parser
authorJason Etheridge <jason@esilibrary.com>
Fri, 25 Sep 2015 18:10:22 +0000 (14:10 -0400)
committerJason Etheridge <jason@esilibrary.com>
Fri, 25 Sep 2015 18:11:29 +0000 (14:11 -0400)
commitc8c0341e94f7347576373dea3e5015276c39b3a6
treec29e1177f064b442d45c840d073b466e1948840b
parentedf746eefdf1e6d9ab6f3ce7a73806396061934b
osrfsys log parser

Some tweaks probably needed to the regular expressions within based on the log format.

./trace_logs.pl [--follow-pid] [--follow-auth] [--follow-trace] [--include-errors] [--search="substring"] [logfile1] [logfile2] [...]
or ./trace_logs.pl [-p] [-a] [-t] [-e] [-s "substring"] [logfile1] [logfile2] [...]
This script searches the specified (or piped) logfiles and spits out lines containing the "substring".
It optionally parses the logfiles and prints out related lines based on PID, threadtrace, and authtoken
values that it encounters in the matching lines.  --include-errors will pull in lines containing [ERR

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
ESI-Examples/sys/scripts/trace_logs.pl [new file with mode: 0755]