Skip to content

1im3oyjrf/logpipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 

Repository files navigation

logpipe

A lightweight CLI tool for tailing and filtering structured JSON logs from multiple sources with live grep support.


Installation

go install github.com/yourname/logpipe@latest

Or build from source:

git clone https://github.com/yourname/logpipe.git
cd logpipe
go build -o logpipe .

Usage

Tail a log file and filter by a JSON field value:

logpipe tail app.log --filter "level=error"

Pipe logs from multiple sources and grep in real time:

logpipe tail app.log worker.log --grep "timeout"

Pretty-print raw JSON log output:

cat app.log | logpipe fmt

Flags

Flag Description
--filter Filter by JSON key=value pair
--grep Live grep across streamed log output
--pretty Pretty-print JSON output
--follow Continuously tail the file (default)

Requirements

  • Go 1.21+

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.


License

MIT

About

A lightweight CLI tool for tailing and filtering structured JSON logs from multiple sources with live grep support.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages