Sorry I know these timezone questions have been beaten to death but I'm really having trouble finding the solution to this problem:
This is what I want to do:
Take existing epoch time integer field (eg. 1544471514) and turn it into a timestamp in my LOCAL timezone.
I would like to use a TIMEZONE (eg. America/New_York), not just hardcode an integer offset (eg. localtime('+01:00') because I need to automatically adhere to daylight savings time changes etc.
This has nothing to do with the default @timestamp field and I know that date {} filter converts to UTC so I am not using that.
I've read I can use a ruby filter to do this but just need a push in the right direction.
This is completely untested and my ruby skills are close to zero, but it should be enough to give you an idea how to achive your goal. I also have no idea in which format you would like to save the local time etc etc.
Please note, that you need to deliver tzinfo gem to Logstash by yourself.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.