# XML filter giving comma separated values

**URL:** <https://discuss.elastic.co/t/xml-filter-giving-comma-separated-values/128023>\
**Category:** Logstash\
**Created:** [April 13, 2018, 9:58pm UTC](https://discuss.elastic.co/t/xml-filter-giving-comma-separated-values/128023 "2018-04-13T21:58:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arisbanach](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@arisbanach](https://discuss.elastic.co/u/arisbanach)\
**Post date:** [April 13, 2018, 9:59pm UTC](https://discuss.elastic.co/t/xml-filter-giving-comma-separated-values/128023/1 "2018-04-13T21:59:00Z")

</div>

Has anyone else experienced this? When I specify an xpath like `/el1/el2//*/text()` it does get all the text but whenever there are different elements in that path it separates them with commas, so the field it outputs to looks like:

```auto
,
,
some text,
,
19
,
,
more text,
,

```

How can I get it to just save the text?

---

<div class="post-metadata">

**Author:** ![arisbanach](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@arisbanach](https://discuss.elastic.co/u/arisbanach)\
**Post date:** [April 15, 2018, 10:42pm UTC](https://discuss.elastic.co/t/xml-filter-giving-comma-separated-values/128023/2 "2018-04-15T22:42:22Z")

</div>

Turned out it was just how Kibana displays arrays. Should have checked the JSON source!

---

<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:** [May 13, 2018, 10:42pm UTC](https://discuss.elastic.co/t/xml-filter-giving-comma-separated-values/128023/3 "2018-05-13T22:42:25Z")

</div>

Closed on May 13, 2018, 10:42pm UTC

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