I have a PHP log I'm trying to get times from. Logstash is just setting @timestamp
as the current time the log is parsed.
The log starts off with this:
[13-Apr-2017 16:36:22 America/New_York]
The relevant part of my filter looks like this: (grok matches, I just abbreviated)
grok {
match => [
"message", "\[%{MONTHDAY}-%{MONTH}-%{YEAR} %{TIME} %{DATA:tz}\] ..."
]
}
date {
timezone => "%{tz}"
locale => "en"
match => [ "timestamp", "dd-MMM-yyyy HH:mm:ss ZZZ" ]
}
The value of @timestamp
when I run this is always the current date/time.
What changes do I need to make for this to work?