Hello All,
I have separately grokked DATE and TIME fields from a comma-separated string.
I now wish to filter them from two string into a date/time format with the Logstash date filter plugin.
I'm struggling with the syntax. I've tried the following. Where am I going wrong?
Thx, Keith :^)
- DATE groks successfully; format is
20191009 - TIME groks successfully; format is
14:23:33
~ does not work, but doesn't break.
date {
match => ["[DATE][TIME]", "yyyymmddHH:mm:ss"]
target => "@timestamp"
}
~ error: Invalid FieldReference: %{[DATE]}%{[TIME]}
date {
match => ["%{[DATE]}%{[TIME]}", "yyyymmddHH:mm:ss"]
target => "@timestamp"
}
EDIT: I suppose really what I am asking is how to concatenate the date and time. Using the "+" char, it would be:
date {
match => ["[DATE]+[TIME]", "yyyymmddHH:mm:ss"]
target => "@timestamp"
}