# Error while parsing logs with XML data

**URL:** https://discuss.elastic.co/t/error-while-parsing-logs-with-xml-data/89378
**Category:** Logstash
**Created:** [June 14, 2017, 1:00pm UTC](https://discuss.elastic.co/t/error-while-parsing-logs-with-xml-data/89378 "2017-06-14T13:00:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Kiranmai\_Reddy](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Kiranmai\_Reddy](https://discuss.elastic.co/u/Kiranmai_Reddy)
#### Post date: [June 14, 2017, 1:00pm UTC](https://discuss.elastic.co/t/error-while-parsing-logs-with-xml-data/89378/1 "2017-06-14T13:00:20Z")

</div>

I am trying to parse logs with XML data using XML filter but it is giving me syntax error.  
here is my log line:

 ![](https://us1.discourse-cdn.com/elastic/original/3X/4/c/4c148785e0112f5d8b5319bb2ba789aa653f89ab.png)

this is configuration of XML filter:

> xml {  
> source =\> "siebelfexception"  
> store\_xml =\> false  
> xpath =\> ['/SOAP-ENV:Envelope[@xmlns:SOAP-ENV="[http://schemas.xmlsoap.org/soap/envelope/"]/SOAP-ENV:Body/SOAP-ENV:Fault/detail/siebelf:siebdetail[@xmlns:siebelf="http://www.siebel.com/ws/fault](http://schemas.xmlsoap.org/soap/envelope/%22%5D/SOAP-ENV:Body/SOAP-ENV:Fault/detail/siebelf:siebdetail%5B@xmlns:siebelf=%22http://www.siebel.com/ws/fault)"]/siebelf:errorstack/siebelf:error/siebelf:errorcode  
> ',"siebelErrCode"]

**this is the error i am getting:**

> [2017-06-14T18:29:59,867][ERROR][logstash.pipeline] Exception in pipelineworker, the pipeline stopped processing new events, please check your filter configuration and restart Logstash. {"exception"=\>"/SOAP-ENV:Envelope[@ :SOAP-ENV="[http://schemas.xmlsoap.org/soap/envelope/\](http://schemas.xmlsoap.org/soap/envelope/%5C)"]/SOAP-ENV:Body/SOAP-ENV:Fault/detail/siebelf:siebdetail[@ :siebelf="[http://www.siebel.com/ws/fault\"]/siebelf:errorstack/siebelf:error/siebelf:errorcode"](http://www.siebel.com/ws/fault%5C%22%5D/siebelf:errorstack/siebelf:error/siebelf:errorcode%22), "backtrace"=\>["nokogiri/XmlXpathContext.java:169:in `evaluate'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/nokogiri-1.7.0.1-java/lib/nokogiri/xml/searchable.rb:165:in `xpath'", "org/jruby/RubyArray.java:2414:in `map'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/nokogiri-1.7.0.1-java/lib/nokogiri/xml/searchable.rb:156:in `xpath'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-filter-xml-4.0.2/lib/logstash/filters/xml.rb:153:in `filter'", "org/jruby/RubyHash.java:1342:in `each'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-filter-xml-4.0.2/lib/logstash/filters/xml.rb:152:in `filter'", "/usr/share/logstash/logstash-core/lib/logstash/filters/base.rb:145:in `do\_filter'", "/usr/share/logstash/logstash-core/lib/logstash/filters/base.rb:164:in `multi_filter'", "org/jruby/RubyArray.java:1613:in `each'", "/usr/share/logstash/logstash-core/lib/logstash/filters/base.rb:161:in `multi_filter'", "/usr/share/logstash/logstash-core/lib/logstash/filter_delegator.rb:43:in `multi\_filter'", "(eval):126:in `filter_func'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:370:in `filter\_batch'", "org/jruby/RubyProc.java:281:in `call'", "/usr/share/logstash/logstash-core/lib/logstash/util/wrapped_synchronous_queue.rb:224:in `each'", "org/jruby/RubyHash.java:1342:in `each'", "/usr/share/logstash/logstash-core/lib/logstash/util/wrapped_synchronous_queue.rb:223:in `each'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:369:in `filter_batch'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:350:in `worker\_loop'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:317:in `start_workers'"]} [2017-06-14T18:30:00,046][FATAL][logstash.runner] An unexpected error occurred! {:error=>#<Nokogiri::XML::XPath::SyntaxError: /SOAP-ENV:Envelope[@ :SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"]/SOAP-ENV:Body/SOAP-ENV:Fault/detail/siebelf:siebdetail[@ :siebelf="http://www.siebel.com/ws/fault"]/siebelf:errorstack/siebelf:error/siebelf:errorcode>, :backtrace=>["nokogiri/XmlXpathContext.java:169:in `evaluate'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/nokogiri-1.7.0.1-java/lib/nokogiri/xml/searchable.rb:165:in `xpath'", "org/jruby/RubyArray.java:2414:in `map'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/nokogiri-1.7.0.1-java/lib/nokogiri/xml/searchable.rb:156:in `xpath'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-filter-xml-4.0.2/lib/logstash/filters/xml.rb:153:in `filter'", "org/jruby/RubyHash.java:1342:in `each'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-filter-xml-4.0.2/lib/logstash/filters/xml.rb:152:in `filter'", "/usr/share/logstash/logstash-core/lib/logstash/filters/base.rb:145:in `do_filter'", "/usr/share/logstash/logstash-core/lib/logstash/filters/base.rb:164:in `multi\_filter'", "org/jruby/RubyArray.java:1613:in `each'", "/usr/share/logstash/logstash-core/lib/logstash/filters/base.rb:161:in `multi\_filter'", "/usr/share/logstash/logstash-core/lib/logstash/filter\_delegator.rb:43:in `multi_filter'", "(eval):126:in `filter\_func'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:370:in `filter_batch'", "org/jruby/RubyProc.java:281:in `call'", "/usr/share/logstash/logstash-core/lib/logstash/util/wrapped\_synchronous\_queue.rb:224:in `each'", "org/jruby/RubyHash.java:1342:in `each'", "/usr/share/logstash/logstash-core/lib/logstash/util/wrapped\_synchronous\_queue.rb:223:in `each'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:369:in `filter\_batch'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:350:in `worker_loop'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:317:in `start\_workers'"]}

thanks in advance.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 12, 2017, 1:00pm UTC](https://discuss.elastic.co/t/error-while-parsing-logs-with-xml-data/89378/2 "2017-07-12T13:00:46Z")

</div>

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