Logstash slowlog field took_in_millis shows microseconds instead of milliseconds

I configured Logstash slowlog like this:

slowlog.threshold.warn: 500ms
slowlog.threshold.info: 400ms
slowlog.threshold.debug: 300ms
slowlog.threshold.trace: 100ms

But I see in slowlog file trace entry with "took_in_millis":103180
I don't believe that my event processing 103 seconds, so I looked at source code and found that took_in_millis calculated incorrectly, it should be took_in_nanos / 1000000 instead of took_in_nanos / 1000

Can you raise that as an issue on Github?

Raised an issue https://github.com/elastic/logstash/issues/6476

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.