https://github.com/etcinit/sauron
CLI tool for tail-ing a whole log directory recursively and dynamically
https://github.com/etcinit/sauron
Last synced: about 1 year ago
JSON representation
CLI tool for tail-ing a whole log directory recursively and dynamically
- Host: GitHub
- URL: https://github.com/etcinit/sauron
- Owner: etcinit
- License: mit
- Created: 2015-04-26T23:32:02.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-05T06:39:47.000Z (about 11 years ago)
- Last Synced: 2025-01-20T18:45:46.413Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 176 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [sauron](https://github.com/etcinit/sauron) [](https://godoc.org/github.com/etcinit/sauron)
CLI tool for tail-ing a whole log directory recursively and dynamically
[](https://app.wercker.com/project/bykey/ed8e8b86cb05d50c598dcff7ef070df2)
## What and why?
`tail` is really nice for monitoring logs. It also works recursively:
`tail -f **/*.log`, which means you can use it to monitor a directory of logs.
However, I couldn't find a simple command for doing this and automatically
following new files.
Sauron is a tool that allows you to do exactly that. Run it in a directory and
it will essentially output the result of calling tail -f on every single file
within the directory (even ones created after the command is ran).
Sauron is also a library, so you can extend the functionality to push logs to
an external service or database.
## Can I haz?
Yes,
```sh
# Tap
brew tap etcinit/homebrew-etcinit
# Install
brew install sauron
# Get usage info
sauron help
```
or if you have GOPATH setup:
```sh
# Get the package
go get github.com/etcinit/sauron
# Get usage info (make sure $GOPATH/bin is in your $PATH)
sauron help
```
## Future ideas:
- Filter by regex
- Integrated support for sinks (InfluxDB, ElasticSearch, MySQL, syslogd)
- Better error reporting
Feel free to open a PR if you have something you would like to add