Log output from logstash docker
logstash | [2020-01-21T08:44:50,085][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
logstash | [2020-01-21T08:44:51,072][WARN ][logstash.filters.xml ] Error parsing xml with XmlSimple {:source=>"message", :value=>"<?xml version=\"1.0\" standalone=\"yes\"?>\r\n<NewDataSet>\r\n <TransferLogDetailForExport>\r\n <LogID>15237</LogID>\r\n <LogDateTime>2020-01-07T17:00:47</LogDateTime>\r\n <GroupType>1</GroupType>\r\n <DataType>4</DataType>\r\n <FromShopID>53</FromShopID>\r\n <DestinationShopID>1</DestinationShopID>\r\n <FileName>001_CUPVCR053_001_20200107_170047</FileName>\r\n <CriteriaStartTime>2020-01-06T17:00:16</CriteriaStartTime>\r\n <ISFromLastUpdate>1</ISFromLastUpdate>\r\n <StaffID>-1</StaffID>\r\n <UpdateDate>2020-01-07T17:00:47</UpdateDate>\r\n <RetryTime>0</RetryTime>\r\n <ResultCode>1</ResultCode>\r\n <DatabaseName>test</DatabaseName>\r\n <IPAddress>192.168.1.1</IPAddress>\r\n <ExportType>XML</ExportType>\r\n </TransferLogDetailForExport>\r", :exception=>#<REXML::ParseException: No close tag for /NewDataSet
logstash | Line: 20
logstash | Position: 754
logstash | Last 80 unconsumed characters:
logstash | >, :backtrace=>["uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rexml/parsers/treeparser.rb:28:in `parse'", "uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rexml/document.rb:288:in `build'", "uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rexml/document.rb:45:in `initialize'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/xml-simple-1.1.5/lib/xmlsimple.rb:971:in `parse'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/xml-simple-1.1.5/lib/xmlsimple.rb:164:in `xml_in'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/xml-simple-1.1.5/lib/xmlsimple.rb:203:in `xml_in'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-filter-xml-4.0.7/lib/logstash/filters/xml.rb:185:in `filter'", "/usr/share/logstash/logstash-core/lib/logstash/filters/base.rb:143:in `do_filter'", "/usr/share/logstash/logstash-core/lib/logstash/filters/base.rb:162:in `block in multi_filter'", "org/jruby/RubyArray.java:1800:in `each'", "/usr/share/logstash/logstash-core/lib/logstash/filters/base.rb:159:in `multi_filter'", "org/logstash/config/ir/compiler/AbstractFilterDelegatorExt.java:115:in `multi_filter'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:251:in `block in start_workers'"]}
logstash | [2020-01-21T08:44:51,539][WARN ][logstash.filters.split ] Only String and Array types are splittable. field:[theXML][Vouchers] is of type = NilClass
logstash | [2020-01-21T08:44:51,541][WARN ][logstash.filters.split ] Only String and Array types are splittable. field:[theXML][Vouchers] is of type = NilClass
logstash | [2020-01-21T08:44:51,541][WARN ][logstash.filters.split ] Only String and Array types are splittable. field:[theXML][Vouchers] is of type = NilClass
logstash | [2020-01-21T08:44:51,542][WARN ][logstash.filters.split ] Only String and Array types are splittable. field:[theXML][Vouchers] is of type = NilClass
logstash | [2020-01-21T08:44:51,542][WARN ][logstash.filters.split ] Only String and Array types are splittable. field:[theXML][Vouchers] is of type = NilClass
logstash | [2020-01-21T08:44:51,542][WARN ][logstash.filters.split ] Only String and Array types are splittable. field:[theXML][Vouchers] is of type = NilClass
logstash | [2020-01-21T08:44:51,543][WARN ][logstash.filters.split ] Only String and Array types are splittable. field:[theXML][Vouchers] is of type = NilClass
logstash | [2020-01-21T08:44:51,545][WARN ][logstash.filters.split ] Only String and Array types are splittable. field:[theXML][Vouchers] is of type = NilClass
logstash | [2020-01-21T08:44:51,545][WARN ][logstash.filters.split ] Only String and Array types are splittable. field:[theXML][Vouchers] is of type = NilClass
logstash | [2020-01-21T08:44:51,554][ERROR][logstash.filters.ruby ] Ruby exception occurred: undefined method `each' for nil:NilClass
logstash | [2020-01-21T08:44:51,557][ERROR][logstash.filters.ruby ] Ruby exception occurred: undefined method `each' for nil:NilClass
logstash | [2020-01-21T08:44:51,564][ERROR][logstash.filters.ruby ] Ruby exception occurred: undefined method `each' for nil:NilClass
logstash | [2020-01-21T08:44:51,565][ERROR][logstash.filters.ruby ] Ruby exception occurred: undefined method `each' for nil:NilClass
logstash | [2020-01-21T08:44:51,566][ERROR][logstash.filters.ruby ] Ruby exception occurred: undefined method `each' for nil:NilClass
logstash | [2020-01-21T08:44:51,567][ERROR][logstash.filters.ruby ] Ruby exception occurred: undefined method `each' for nil:NilClass
logstash | [2020-01-21T08:44:51,567][ERROR][logstash.filters.ruby ] Ruby exception occurred: undefined method `each' for nil:NilClass
logstash | [2020-01-21T08:44:51,568][ERROR][logstash.filters.ruby ] Ruby exception occurred: undefined method `each' for nil:NilClass
logstash | [2020-01-21T08:44:51,569][ERROR][logstash.filters.ruby ] Ruby exception occurred: undefined method `each' for nil:NilClass
logstash | /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/awesome_print-1.7.0/lib/awesome_print/formatters/base_formatter.rb:31: warning: constant ::Fixnum is deprecated
logstash | {
logstash | "host" => "5cacf0bc6d71",
logstash | "message" => "<?xml version=\"1.0\" standalone=\"yes\"?>\r\n<NewDataSet>\r\n <TransferLogDetailForExport>\r\n <LogID>15237</LogID>\r\n <LogDateTime>2020-01-07T17:00:47</LogDateTime>\r\n <GroupType>1</GroupType>\r\n <DataType>4</DataType>\r\n <FromShopID>53</FromShopID>\r\n <DestinationShopID>1</DestinationShopID>\r\n <FileName>001_CUPVCR053_001_20200107_170047</FileName>\r\n <CriteriaStartTime>2020-01-06T17:00:16</CriteriaStartTime>\r\n <ISFromLastUpdate>1</ISFromLastUpdate>\r\n <StaffID>-1</StaffID>\r\n <UpdateDate>2020-01-07T17:00:47</UpdateDate>\r\n <RetryTime>0</RetryTime>\r\n <ResultCode>1</ResultCode>\r\n <DatabaseName>test</DatabaseName>\r\n <IPAddress>192.168.1.1</IPAddress>\r\n <ExportType>XML</ExportType>\r\n </TransferLogDetailForExport>\r",
logstash | "@version" => "1",
logstash | "path" => "/mnt/data/001_CUPVCR053_001_20200107_170047/ExportData.xml",
logstash | "@timestamp" => 2020-01-21T01:44:49.430Z,
logstash | "LogID" => "%{[theXML][TransferLogDetailForExport][LogID]}",
logstash | "LogDateTime" => "%{[theXML][TransferLogDetailForExport][LogDateTime]}",
logstash | "tags" => [
logstash | [0] "multiline",
logstash | [1] "_xmlparsefailure",
logstash | [2] "_split_type_failure",
logstash | [3] "_rubyexception"
logstash | ]
logstash | }
from elasticsearch
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 10,
"relation" : "eq"
},
"max_score" : 1.0,
"hits" : [
{
"_index" : "cup52",
"_type" : "_doc",
"_id" : "zsR_xW8BiVWNNH1HT1OF",
"_score" : 1.0,
"_source" : {
"message" : "<?xml version=\"1.0\" standalone=\"yes\"?>\r\n<NewDataSet>\r\n <TransferLogDetailForExport>\r\n <LogID>15237</LogID>\r\n <LogDateTime>2020-01-07T17:00:47</LogDateTime>\r\n <GroupType>1</GroupType>\r\n <DataType>4</DataType>\r\n <FromShopID>53</FromShopID>\r\n <DestinationShopID>1</DestinationShopID>\r\n <FileName>001_CUPVCR053_001_20200107_170047</FileName>\r\n <CriteriaStartTime>2020-01-06T17:00:16</CriteriaStartTime>\r\n <ISFromLastUpdate>1</ISFromLastUpdate>\r\n <StaffID>-1</StaffID>\r\n <UpdateDate>2020-01-07T17:00:47</UpdateDate>\r\n <RetryTime>0</RetryTime>\r\n <ResultCode>1</ResultCode>\r\n <DatabaseName>test</DatabaseName>\r\n <IPAddress>192.168.1.1</IPAddress>\r\n <ExportType>XML</ExportType>\r\n </TransferLogDetailForExport>\r",
"host" : "5cacf0bc6d71",
"path" : "/mnt/data/001_CUPVCR053_001_20200107_170047/ExportData.xml",
"LogID" : "%{[theXML][TransferLogDetailForExport][LogID]}",
"tags" : [
"multiline",
"_xmlparsefailure",
"_split_type_failure",
"_rubyexception"
],
"LogDateTime" : "%{[theXML][TransferLogDetailForExport][LogDateTime]}",
"@timestamp" : "2020-01-21T00:27:29.814Z",
"@version" : "1"
}
},
{
"_index" : "cup52",
"_type" : "_doc",
"_id" : "z8R_xW8BiVWNNH1HT1OF",
"_score" : 1.0,
"_source" : {
"host" : "5cacf0bc6d71",
"path" : "/mnt/data/001_CUPVCR053_001_20200107_170047/ExportData.xml",
"LogID" : "%{[theXML][TransferLogDetailForExport][LogID]}",
"tags" : [
"multiline",
"_split_type_failure",
"_rubyexception"
],
"LogDateTime" : "%{[theXML][TransferLogDetailForExport][LogDateTime]}",
"@timestamp" : "2020-01-21T00:27:29.929Z",
"theXML" : {
"VoucherTypeID" : "24",
"VoucherID" : "2",
"ComputerID" : "0",
"Used" : "1"
},
"@version" : "1"
}
},
{
"_index" : "cup52",
"_type" : "_doc",
"_id" : "0MR_xW8BiVWNNH1HT1OF",
"_score" : 1.0,
"_source" : {
"host" : "5cacf0bc6d71",
"path" : "/mnt/data/001_CUPVCR053_001_20200107_170047/ExportData.xml",
"LogID" : "%{[theXML][TransferLogDetailForExport][LogID]}",
"tags" : [
"multiline",
"_split_type_failure",
"_rubyexception"
],
"LogDateTime" : "%{[theXML][TransferLogDetailForExport][LogDateTime]}",
"@timestamp" : "2020-01-21T00:27:29.931Z",
"theXML" : {
"VoucherTypeID" : "24",
"VoucherID" : "3",
"ComputerID" : "0",
"Used" : "1"
},
"@version" : "1"
}
},
{
"_index" : "cup52",
"_type" : "_doc",
"_id" : "0cR_xW8BiVWNNH1HT1OF",
"_score" : 1.0,
"_source" : {
"host" : "5cacf0bc6d71",
"path" : "/mnt/data/001_CUPVCR053_001_20200107_170047/ExportData.xml",
"LogID" : "%{[theXML][TransferLogDetailForExport][LogID]}",
"tags" : [
"multiline",
"_split_type_failure",
"_rubyexception"
],
"LogDateTime" : "%{[theXML][TransferLogDetailForExport][LogDateTime]}",
"@timestamp" : "2020-01-21T00:27:29.938Z",
"theXML" : {
"VoucherTypeID" : "24",
"VoucherID" : "6",
"ComputerID" : "0",
"Used" : "1"
},
"@version" : "1"
}
},