[2020-06-03T17:14:02,261][WARN ][org.logstash.instrument.metrics.gauge.LazyDelegatingGauge][main] A gauge metric of an unknown type (org.jruby.specialized.RubyArrayOneObject) has been created for key: cluster_uuids. This may result in invalid seri

[2020-06-03T17:14:02,261][WARN ][org.logstash.instrument.metrics.gauge.LazyDelegatingGauge][main] A gauge metric of an unknown type (org.jruby.specialized.RubyArrayOneObject) has been created for key: cluster_uuids. This may result in invalid serialization. It is recommended to log an issue to the responsible developer/development team.Preformatted text

Getting above error while parsing xml with below logstash.conf

input{
file {
path => "D:\Elk\filebeat-7.6.2-windows-x86_64\XML\3jun1*.txt"
sincedb_path => "NUL"
start_position => "beginning"
}
}

filter {
if [path] =~ "SLIC" {
mutate { replace => { "type" => "slic" } }
}
grok {
match => [
"message",
"^[%{DATESTAMP:tslice}] %{GREEDYDATA} HttpClient.submit - POST : %{GREEDYDATA:inxml}"
]
}
if "_grokparsefailure" in [tags] {
drop { }
}
xml {
source => "inxml"
#target => "xmldata"
store_xml => "false"
xpath => ["/propertyAvailability/hotelRates/hotel/text()","hotelid"]

}
if "_grokparsefailure" in [tags] {
drop { }
} else {
mutate {
remove_field => [ "message", "inxml", "xmldata" ]
}
mutate {
convert => { "hotelid" => "string" }
}
}
}

output {
elasticsearch {
hosts => ["http://localhost:9200"]
index => "dev3"
#user => "elastic"
#password => "changeme"
}
}

my xml is

<?xml version="1.0" encoding="utf-16"?> 1.0 false 1d69ba93-e71c-001c-06b1-f8f8e233ff5c 61b33e59-b9cf-d898-58f7-e48903d79b60 83860622-5508-4f1d-9d73-fca806da67b0 2020-08-20 2020-08-21 1 1 No 261 Avathi Village, Devanahalli Taluka Devanahalli 562110 Karnataka IN India +XXXXXXXXXXXXXXXX9 +918067418710 C 1 Property is not attached with any of the configured channels Property is not attached with any of the configured channels No

stored in text file in this path

I see that warning too. I ignore it. Does it cause you a problem?

I need correct logstash configuration to parse my xml attribute could someone please share with me i have presentation tomorrow

Unable parse required column from xml

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.