# XML Filter Not Working

**URL:** <https://discuss.elastic.co/t/xml-filter-not-working/93840>\
**Category:** Logstash\
**Created:** [July 19, 2017, 9:13pm UTC](https://discuss.elastic.co/t/xml-filter-not-working/93840 "2017-07-19T21:13:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![httpex](https://avatars.discourse-cdn.com/v4/letter/h/47e85d/32.png) [@httpex](https://discuss.elastic.co/u/httpex)\
**Post date:** [July 19, 2017, 9:13pm UTC](https://discuss.elastic.co/t/xml-filter-not-working/93840/1 "2017-07-19T21:13:12Z")

</div>

After adding the xml filter below, it's not doing anything. It just says that it successfully started. Help is much appreciated. Not sure what to do next...

[2017-07-19T16:50:54,105][INFO][logstash.outputs.elasticsearch] New Elasticsear  
ch output {:class=\>"LogStash::Outputs::ElasticSearch", :hosts=\>[#\<Java::JavaNet:  
:URI:0x16c4d88\>]}  
[2017-07-19T16:50:56,660][INFO][logstash.pipeline] Starting pipeline {"  
id"=\>"main", "pipeline.workers"=\>1, "pipeline.batch.size"=\>125, "pipeline.batch.  
delay"=\>5, "pipeline.max\_inflight"=\>125}  
[2017-07-19T16:50:57,511][INFO][logstash.pipeline] Pipeline main starte  
d  
[2017-07-19T16:50:57,721][INFO][logstash.agent] Successfully started  
Logstash API endpoint {:port=\>9600}

filter {  
xml {  
source =\> "letter"  
xpath =\> [  
"/letter/title/text()", "letter",  
"/letter/mainTerm/code/text()", "code",  
"/letter/mainTerm/title/text()", "expression",  
"/letter/mainTerm/title/nemod/text()", "nemod",  
"/letter/mainTerm/seeAlso/text()", "seeAlso",  
"/letter/mainTerm/term/title/text()", "termExpression",  
"/letter/mainTerm/term/code/text()", "termCode",  
"/letter/mainTerm/see/text()","see",  
"/letter/mainTerm/term//term/text()","terms",  
"/letter/mainTerm//term/text()","term",  
"/letter/mainTerm/term/term/seecat/text()","seeCat",  
"/letter/mainTerm/term/seeAlso/text()","termSeeAlso",  
"/letter/mainTerm/manif/text()","manif"  
]  
store\_xml =\> false  
}  
}

---

<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:** [August 11, 2017, 6:24pm UTC](https://discuss.elastic.co/t/xml-filter-not-working/93840/2 "2017-08-11T18:24:31Z")

</div>

The problem is most likely that your input plugin isn't emitting any events in the first place.

---

<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:** [September 8, 2017, 6:24pm UTC](https://discuss.elastic.co/t/xml-filter-not-working/93840/3 "2017-09-08T18:24:49Z")

</div>

Closed on September 8, 2017, 6:24pm UTC

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