npm.io
1.0.0 • Published 3 years agoCLI

@sendungverpasst/ecs2console

Licence
Apache-2.0
Version
1.0.0
Deps
3
Size
30 kB
Vulns
0
Weekly
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