I'm having trouble parsing out fields from my xml file using the logstash xml filter plugin.
Here is my xml file data--
733812
JVM|Garbage Collection|Number of Minor Collections Per Min
Application Infrastructure Performance|OSP Servers|JVM|Garbage Collection|Number of Minor Collections Per Min
ONE_MIN
1579723620000
0
0
0
0
true
30
0
0
0
And this is my logstash.conf set up--
input {
file {
path => "C:/AppDynamics/Metrics-Data/*.xml"
type => "xml"
codec => multiline {
pattern => "\r\n"
negate => "true"
what => "previous"
}
mode => "read"
file_completed_action => "delete"
add_field => {
"es_index" => "appdynamics-metrics"
}
}
}
Use markdown to protect the XML from being interpreted as HTML. Edit your post, select the XML and click on </> in the toolbar above the edit pane. Then do the same with your configuration.
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.