eht16 / python-logstash-async

Python logging handler for sending log events asynchronously to Logstash.
MIT License
186 stars 51 forks source link

Drop fields #52

Closed Dorokah closed 4 years ago

Dorokah commented 4 years ago

Hello! I would like to remove fields like "line", "logsource", "logstash_async_version" from my logs. is there some way to do that?

eht16 commented 4 years ago

Since d2d3025 you can use constants.FORMATTER_RECORD_FIELD_SKIP_LIST to filter any field you don't want to have to be transmitted. Please read https://python-logstash-async.readthedocs.io/en/stable/config.html#options-for-the-asynchronous-processing-and-formatting on how to set the options in constants. The order of imports is important here.

Release will follow soon.