1.0.0 • Published 1 year ago

@sendungverpasst/ecs2console v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

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