# Logstash problems with xml filter

**URL:** <https://discuss.elastic.co/t/logstash-problems-with-xml-filter/264667>\
**Category:** Logstash\
**Created:** [February 18, 2021, 9:16am UTC](https://discuss.elastic.co/t/logstash-problems-with-xml-filter/264667 "2021-02-18T09:16:02Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 19, 2021, 10:15pm UTC](https://discuss.elastic.co/t/logstash-problems-with-xml-filter/264667/8 "2021-02-19T22:15:59Z")

</div>

Well you would, since your [message] field is

"message" =\> " \<Parameter ID="512" EventID="498" Name="Iteration" //DisplayName="Iteration" Type="Int" StorageUnit="" DisplayUnit="" DisplayScale="" //FormatString="" ServiceCategory="None" MaxLogInterval="00:00:00" //AbsoluteMinimum="-1.7976931348623157E+308" //AbsoluteMaximum="1.7976931348623157E+308" /\>\r"

That matches the health\_id and event\_id in your event.

I wonder if your problem is that you are consuming the XML line by line. You may need a multiline codec. Read [this](https://discuss.elastic.co/t/ingest-xml-file-using-logstash/255113/4) post and the posts linked to.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-problems-with-xml-filter/264667)._
