logstash-plugins / logstash-filter-kv

Apache License 2.0
17 stars 42 forks source link

Make log value truncation message more clear #85

Closed yaauie closed 2 years ago

yaauie commented 5 years ago

Currently, the value emitted from KV#summarize is emitted in a log message of format: "Timeout reached in KV filter with value entry #{summary}"

When summary starts with too large, this ends up implying that the value itself is too large for the KV filter to process.

By parenthesizing the truncation note, we can make the resulting message clearer.

Thanks for contributing to Logstash! If you haven't already signed our CLA, here's a handy link: https://www.elastic.co/contributor-agreement/

yellowsand1 commented 10 months ago

I still fail to understand this . I currently meet this problem which log says [Timeout reached in KV filter with value entry too large; first 255 chars are ...] . So instead of just truncate my log message, how can I prevent this ? And I also find that all message r blocked when this happen.