From this input xml I want to get the "time_start" and "time_end" from the tag.
I have tried with using XPATH, but I am not able to get the data. I am able to get the data using XPATH, but "time_start" and "time_end" is not able to get.
After fixing the XML syntax problems //robot/suite/stat/@time_start can be used to select one of the attributes. I didn't try it in Logstash but I'd be surprised if it didn't work there. If you still have problems please provide details.
XML I have provided is a custom one and with that I just wanted to show the structure of the nested xml file.
I have tried in the following format and I am able to extract data.
/robot//stat/@time_start
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.