Hi Gurus,
Could you please suggest me how to get the timezone on to the '@timestamp' where i have my configuration which work fine but the time zone is not displayed when i run the config file in logstash(actually i am testing the logdate which contains like this: Mon May 30 00:30:26 PDT 2016.
Here is my config code:
input { stdin { codec => plain } }
filter {
grok {
match => [
"message",
"(?%{MONTH} %{MONTHDAY} %{TIME} %{YEAR})"
]
}
date {
match => [ "mytimestamp", "MMM dd HH:mm:ss YYYY"]
locale => "en"
target => "@timestamp"
timezone => "America/Los_Angeles"
add_tag => [ "tsmatch" ]
}
}
output { stdout { codec => rubydebug } }
The o/p is
Even my code working fine but without Timezone(i.e PDT) here ..
but my requirement is to get timezone on '@timestamp'..
Great Thanks,
Jagan