Thank you, you are obviously right it was my mistake.
The exact fields below:
<?xml version="1.0" encoding="UTF-8"?>
After simple xml {} without xpath everty kibana shows right fields (with start rest.EventList and rest.MachineInfo) but after using xpath i do not get enything in newly created field, its empty
So, for some reason any of below does not work:
xpath => ["/Main/MachineInfo/MachineName/text()"]
xpath => ["/rest.MachineInfo/MachineName/text()"]
any idea?
Hi,
No matter what I will choose, whether
xpath => ["/Main/MachineInfo/MachineName/text()", "MachineName"]
or
xpath => ["//MachineName/text()", "MachineName"]
the field is empty, any idea why?
I have tried that and nothing, field is empty. To be honest, no matter which field I will choose, all of them appear to be empty after xpath.
Is there some way to debug this?
Like I said earlier xml filter works fine, there is something wrong with xpath.
One more thing
XML splitted output into 3 main fields:
rest2.EventList and there rest
rest2.EventList.Event.GMTTime
and rest2.MachineInfo
Clearly the example XML you posted is not the XML you are working on (no rest. anywhere). I understand you may be unable to post proprietary information but it is making impossible for me to see what the problem might be.
If your syslog timestamps look like "Feb 1 01:02:03" with two spaces between Feb and 1 then this will break tomorrow. You need to tell dissect that there are extra delimiters used for visual alignment. The -> after syslog_timestamp does that.
You should not add rest2. to the xpath expression. I don't know what else to say. Given the XML format you show, if, and only if, there is a value in the MachineName element, then
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.