Skip to content

Bash script to automate searching through logs by not outputting removing similar (but slightly different) entries

Notifications You must be signed in to change notification settings

PurpleLinux/LogScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

LogScraper

Bash script to automate searching through logs by not outputting removing similar (but slightly different) entries.

How it works:

The bash script will recursively grep through the chosen directory (e.g. /var/log/), then hash each line of text with the date and all numbers removed, and save the value to a rolling hash table. If the hash of the line in the log file already exists in the table, the line will be discarded. Otherwise, it will be saved to the output.

About

Bash script to automate searching through logs by not outputting removing similar (but slightly different) entries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages