1.0.0 • Published 1 year ago
@sendungverpasst/ecs2console v1.0.0
ecs2console
Convert JSON log output in ECS (Elastic Common Schema) format to pretty console readable output.
Install
npm install
npm link
On MacOS the folder /usr/local
might not be writeable for the current user. You ccan change this by executing:
sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
Usage
See if it works by running:
more test/log.json | ecs2console
Only output logs with log level INFO or less:
more test/log.json | ecs2console -l info
1.0.0
1 year ago