https://github.com/sparkpost/msys-jlog-tools
Miscellaneous tools for JLog (journalled log) files
https://github.com/sparkpost/msys-jlog-tools
Last synced: 6 months ago
JSON representation
Miscellaneous tools for JLog (journalled log) files
- Host: GitHub
- URL: https://github.com/sparkpost/msys-jlog-tools
- Owner: SparkPost
- License: apache-2.0
- Created: 2014-12-23T13:59:45.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2022-10-03T20:02:34.000Z (over 3 years ago)
- Last Synced: 2024-12-29T11:49:11.686Z (over 1 year ago)
- Language: Perl
- Size: 8.79 KB
- Stars: 2
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
msys-jlog-tools
===============
Miscellaneous tools for JLog (journalled log) files
See [https://labs.omniti.com/labs/jlog] for a description of JLogs.
These scripts should only be run as the user that owns the JLog
(e.g.: ecuser), otherwise it may result in permission problems
that may affect the program writing to the JLog. This behaviour
is not specific to msys-jlog-tools -- it is true of any tool
using a JLog.
jlogcat
-------
This is like the cat command, but on a jlog. E.g.:
```jlogcat /var/log/ecelerity/foo.jlog```
For a jlog containing JSON records, you can use --no-escape and pipe
the output into [jq](https://stedolan.github.io/jq/) for pretty-printing:
```jlogcat /var/log/ecelerity/event_hydrant.rt --no-escape | jq .```
See `jlogcat --help` for more details.
jlogtail
--------
This is like the tail command, but on a jlog. E.g.: follow the jlog
to show new entries:
```jlogtail -f /var/log/ecelerity/foo.jlog```
jlogtail supports the --no-escape option, like jlogcat.
See `jlogtail --help` for more details.
jlog-trim-subscribers
---------------------
See script for more details.