1.0.0 • Published 3 years 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 linkOn 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 | ecs2consoleOnly output logs with log level INFO or less:
more test/log.json | ecs2console -l info1.0.0
3 years ago