# XML ingestion splits object and reads one object as two separate objects creating errors

**URL:** <https://discuss.elastic.co/t/xml-ingestion-splits-object-and-reads-one-object-as-two-separate-objects-creating-errors/195382>\
**Category:** Logstash\
**Created:** [August 15, 2019, 6:53pm UTC](https://discuss.elastic.co/t/xml-ingestion-splits-object-and-reads-one-object-as-two-separate-objects-creating-errors/195382 "2019-08-15T18:53:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![edster](https://avatars.discourse-cdn.com/v4/letter/e/da6949/32.png) [@edster](https://discuss.elastic.co/u/edster)\
**Post date:** [August 15, 2019, 6:53pm UTC](https://discuss.elastic.co/t/xml-ingestion-splits-object-and-reads-one-object-as-two-separate-objects-creating-errors/195382/1 "2019-08-15T18:53:33Z")

</div>

Trying to ingest an xml with a format like;

> ```
> <rule>
> <name></name>
> <description></description>
> <options>
> <key></key>
> <value></value>
> <key></key>
> <value></value>
> <key></key>
> <value></value>
> ......(same as above>)
> </options>
> </rule> 
> <rule>
> <name></name>
> <description></description>
> <options>
> <key></key>
> <value></value>
> <key></key>
> <value></value>
> <key></key>
> <value></value>
> ......(same as above>)
> </options>
> </rule> 
> 
> ```

And so on.....

However, it only stores the xml properly for a few and has trouble splitting on others. It will separate for some rules at

---

<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 12, 2019, 6:53pm UTC](https://discuss.elastic.co/t/xml-ingestion-splits-object-and-reads-one-object-as-two-separate-objects-creating-errors/195382/2 "2019-09-12T18:53:40Z")

</div>

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