Hi
When dealing with Logstash dates, anyone can easily convert a text string date field to a real date (with proper TZ and DST) using date filter:
date {
timezone => "Europe/Madrid"
match => ["mytime", "ISO8601"]
locale => "es"
}
(please, notice timezone (and locale) above)
However, I would like to append current hour to a string field and seems:
mutate { replace => { "field" => "%{field}-%{+HH}" } }
it's adding hours in UTC, so it's always 1 hour less than it should.
What's would be the proper way to do it?
Thanks,
Regards