# Having a really hard time mutating XML Filter Results

**URL:** <https://discuss.elastic.co/t/having-a-really-hard-time-mutating-xml-filter-results/160929>\
**Category:** Logstash\
**Created:** [December 14, 2018, 3:15pm UTC](https://discuss.elastic.co/t/having-a-really-hard-time-mutating-xml-filter-results/160929 "2018-12-14T15:15:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abablitz](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@abablitz](https://discuss.elastic.co/u/abablitz)\
**Post date:** [December 14, 2018, 3:15pm UTC](https://discuss.elastic.co/t/having-a-really-hard-time-mutating-xml-filter-results/160929/1 "2018-12-14T15:15:17Z")

</div>

figured it out xpath.

---

<div class="post-metadata">

**Author:** ![abablitz](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@abablitz](https://discuss.elastic.co/u/abablitz)\
**Post date:** [December 15, 2018, 12:26am UTC](https://discuss.elastic.co/t/having-a-really-hard-time-mutating-xml-filter-results/160929/2 "2018-12-15T00:26:09Z")

</div>

I tried mutating the index inside the elastic stack to avail.

---

<div class="post-metadata">

**Author:** ![wwalker](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wwalker](https://discuss.elastic.co/u/wwalker)\
**Post date:** [December 15, 2018, 5:27am UTC](https://discuss.elastic.co/t/having-a-really-hard-time-mutating-xml-filter-results/160929/3 "2018-12-15T05:27:53Z")

</div>

I'm thinking your mutate conversion syntax is incorrect and possibly the field names. Looking at the documentation, try this syntax:

```
mutate {
  convert => {
    "[Info][0][RunDate] => "date"
    "[Info][1][ProcessingTime] => "float"
  }
}

```

I mention the field name's possibly being incorrect because you specify the target as being `xml_content`. This should change the field values to `xml_content.Info.0.RunDate` and `xml_content.Info.1.ProcessingTime`. If you have an output of what the data looks like from Kibana or the query results directly from Elasticsearch, we would know for sure.

---

<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:** [January 12, 2019, 5:27am UTC](https://discuss.elastic.co/t/having-a-really-hard-time-mutating-xml-filter-results/160929/4 "2019-01-12T05:27:53Z")

</div>

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