oslo.log/oslo_log/cmds/__init__.py
Joshua Harlow 30f2074a37 Add a json reformatter command
It would save a lot of space to only write JSON logs, rather than also
write formatted logs. This utility turns the former into the latter
so we can do this without removing the ability of a sysadmin to read
logs in a sensible format.

You can either provide a filename or pipe via stdin. `tail -f` works
as stdin. Each record must occupy precisely one line.

Change-Id: I334e1e52d442f82bf68da9e581ce44bc3465208b
Co-Authored-By: Alexis Lee <lxsli@hpe.com>
2016-10-07 09:28:21 +01:00

0 lines
Python