Skip to content

iohn2000/ParLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ParLog

A tool to filter log files for log entries that contain a specific (regex) pattern. -) Works also with multiline log entries. -) Writes the result to standard output. -) Can also read from standard input (pipe) instead of reading from files. (-f paramter will be ignored)

default startPattern is :

^[0-9]{2} [\w]{3} [0-9]{4} [0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{3}

this corresponds to date format: e.g.: 04 Feb 2017 15:02:50,778

f:wildcard		a file name or wildcard for multiple files
p:pattern		the regex pattern to filter the file(s)
s:startPattern		regex pattern to define when a new log entry starts

examples :

ParLog -f=*.log -p=findMe
cat log.txt | ParLog.exe -p=findMe -s=^start

About

parses log files filter for certain string in log file entry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages