Skip to content

A log parser/watcher written in Go. Mainly an exercise in Go.

Notifications You must be signed in to change notification settings

robbydyer/go-log-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Go Log Go

Go-log-go is a File watcher/parser. It is essentially just a dumbed-down grep, with a daemon mode. You can have it scan a file for either a string, or a regular expression.

Usage of golog:
  -daemon=false: Mark as true to run in daemon mode
  -debug=false: Debug mode
  -file="testlog.txt": Name of file to parse
  -is_regex=false: Mark as true if your parse string is a regular expression
  -max_threads=2: Max number of concurrent parse threads
  -query="Hello World": String or Regular Expression to parse for

Examples

golog -file="testlog.txt" -query="Hello World"
    Total lines processed: 1000
    Total matches: 4

golog -file="testlog.txt" -query="^X$" -is_regex=true
    Total lines processed: 1000
    Total matches: 3

About

A log parser/watcher written in Go. Mainly an exercise in Go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages