Hi There,
I have read more topics but I don't understand about timezone. So I just need to create the file with the hour in the day. output e.g. 21.log, 22.log, 23.log, 00.log, 01.log
My logstash.conf
file {
path =>"/var/log/%{+HH}.log"
}
But when I use HH it returns 18 looks in my test log below not same my local timezone. I need to use same a local timezone in my host. how can I fix it?
{"@version":"1","host":"x.x.x.x","@timestamp":"2018-07-09T14:18:31.923Zport":57541,"message":"{"@message": "python test message", "@tags": ["hon", "test"]}"}
My local timezone is Time zone: Asia/Bangkok (+07, +0700)
Thank you.