Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msiebuhr/logmunch
Getting all the logs!
https://github.com/msiebuhr/logmunch
go heroku log logentries parsing
Last synced: about 1 month ago
JSON representation
Getting all the logs!
- Host: GitHub
- URL: https://github.com/msiebuhr/logmunch
- Owner: msiebuhr
- License: isc
- Created: 2015-03-18T19:00:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-05-06T08:57:31.000Z (over 5 years ago)
- Last Synced: 2024-06-21T09:38:50.966Z (5 months ago)
- Topics: go, heroku, log, logentries, parsing
- Language: Go
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
logmunch
========Install with `go install github.com/msiebuhr/logmunch/bin/logmunch`.
Somewhat ad-hoc tool for parsing logs in logfmt and json-styles from
logentries.Create a file, `~/.logmunch` with a list of providers and their default
parameters described as URLs. In particular, logentries' key for
`pull.logentries.com`:logentries://:[email protected]/
After that, running `logmunch -source logentries:Test/heroku -filter "H12"
-limit 10` will fetch ten entries with the text `H12` from `hosts/Test/heroku`
in logentries.`logenries:`
* https://logentries.com/doc/api-download/`file:`
* Defaults to stdin.
* `file:///./local.txt` to read local files.Basic use
---------(I'm not terribly good at keeping README's up to date, so please run `logmunch
-h` to get a current overview.)// Parse a local file
logmunch -source=file:/./local.log// Round timestamps and generate compound key X from A and B
logmunch -source=- \
-round-time=1h \
-compound=X,A,BDeveloper docs
--------------The internal API used for fetching/parsing/filtering/outputting logs is split
out from the main binary, so it should be possible to re-use.Documentation is at [godoc.org](http://godoc.org/github.com/msiebuhr/logmunch).
License
-------ISC