here is the xml field that comes in originally (xml parsing works fine, and this field shows up in kibana as entry.Timestamp):
2016-04-04T17:45:34.498-04:00
here is what the json looks like after xml parsing:
"entry": {
"Timestamp": ["2016-04-04T17:45:34.498-04:00"]
}
i have tried the following in the date filter:
match => [ "entry.Timestamp", "YYYY-MM-dd HH:mm:ss,SSSZ", "ISO8601" ]
match => [ "Timestamp", "YYYY-MM-dd HH:mm:ss,SSSZ", "ISO8601" ]
no matter what i do I cannot get @timestamp to pull this time. I tried adding
"YYYY-MM-dd'T'HH:mm:ss,SSSZ"
but that resulted in errors. there are no errors and no logs to why it doesn't match.
config currently looks like after trying to match "Timestamp" as well as "entryTimestamp":
if "myFirstDate" in [type]{
xml {
target => entry
source => message
}
date{
match => [ "entry.Timestamp", "YYYY-MM-dd HH:mm:ss,SSSZ", "ISO8601", "UNIX_MS", "UNIX", "MMMM d YYYY, HH:mm:ss.SSS", "MMMM dd YYYY, HH:mm:ss.SSS" ]
add_tag => [ "dated" ]
}
Any help is appreciated.