# Logstash XML Filter is not functioning after upgrading to Logstash 2.2.1

**URL:** <https://discuss.elastic.co/t/logstash-xml-filter-is-not-functioning-after-upgrading-to-logstash-2-2-1/46039>\
**Category:** Logstash\
**Created:** [April 1, 2016, 9:57am UTC](https://discuss.elastic.co/t/logstash-xml-filter-is-not-functioning-after-upgrading-to-logstash-2-2-1/46039 "2016-04-01T09:57:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajkamalkool6](https://avatars.discourse-cdn.com/v4/letter/r/e9c0ed/32.png) [@rajkamalkool6](https://discuss.elastic.co/u/rajkamalkool6)\
**Post date:** [April 1, 2016, 9:57am UTC](https://discuss.elastic.co/t/logstash-xml-filter-is-not-functioning-after-upgrading-to-logstash-2-2-1/46039/1 "2016-04-01T09:57:25Z")

</div>

Hi,

I have used logstash 1.5.4 before and I am parsing XML log files which was worked nicely. Currently I have upgraded my Logstash to 2.2.1 and I trying to parse the XML file which was not parsing the fields as before.

**My sample XML log file is as below**

> ```
> <err>
> <Variables>
> <item name="MS_PATH">
> <value string = "serverpath/path"/>
> </item>
> </Variables>
> </err>
> 
> ```

**My XPATH coding**  
`"/err/Variables/item[@name='MS_PATH']/value/@string","server_path"`

Is my XPATH sysntax is correct or need to change my syntax as per the new version. Thanks in advance

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 3, 2016, 7:47pm UTC](https://discuss.elastic.co/t/logstash-xml-filter-is-not-functioning-after-upgrading-to-logstash-2-2-1/46039/2 "2016-04-03T19:47:44Z")

</div>

This looks correct but I'm no XPath expert. Is there anything interesting in the Logstash logs? What does the full xml filter looks like?

---

<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 6, 2017, 5:04am UTC](https://discuss.elastic.co/t/logstash-xml-filter-is-not-functioning-after-upgrading-to-logstash-2-2-1/46039/3 "2017-07-06T05:04:10Z")

</div>

Closed on July 6, 2017, 5:04am UTC


