I don't know why, but the date filter is not parsing the date field and I don't see any error logs regarding it. The docs do have the _dateparsefailure tag though. My config:
xml {
source => "message"
xpath => ["/element/date/text()", "date"]
store_xml => false
}
date {
match => ["date", "yyyyMMdd"]
target => "date"
}
The date fields are all like 20180425. Any ideas why this is happened?
Actually, this might be related to the xpath value I'm using to pull it. This has been happening with other fields as well, so I'm guess I'm just not understanding something about xpaths. Is there a way that I can concatenate multiple matches so that the output isn't stored in an array? Or will I need to use a different filter afterward to do that?
force_array => false works for store_xml, but not for xpath. If you look at the source it is not even referenced in the if @xpath block, just in the if @store_xml block.
Thanks! You're amazing! How long have you been doing this for, if you don't mind me asking? I don't know if there is a normal learning curve with Logstash or if I'm just slow.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.