How to change the Logstash console log timezone (UTC -> localtime)

I want change the timezone of Logstash console output (logs) to my localtime.
Example:
[WARN ] 2020-01-28 18:30:06.611 [Ruby-0-Thread-15: /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.2.1-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:241] eticsearch - Restored connection to ES instance {:url=>"http://elastic:xxxxxx@haproxy:8080/"}

My localtime: 2020-01-28 16:30:06.611

I haven't tried it, but this might work.

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