A JSON log formatter for logstash, typically used with Python's logging module. Current version 0.5.17. Infrequently updated; last release in 2019.
pip install logstash-formatterVerified import paths — ran on the pinned version, not inferred.
Basic setup with a stream handler. The extra dict becomes JSON fields.
Use the extra parameter to add structured data instead of formatting it into the message string.
Set the 'format' parameter to 'UNIX' or custom format, or ensure your logger's timezone is consistent.
Upgrade to Python 3. Use version 0.5.17 on Python 3.6+.
Run 'pip install logstash-formatter' and use 'from logstash_formatter import LogstashFormatter'.
Check the constructor: LogstashFormatter(fmt=None, datefmt=None, extra=None). Remove unsupported arguments.
Pin to logstash-formatter==0.5.17 and ensure Python >=3.6. If issues persist, consider switching to python-json-logger.
No dependency data recorded yet.