# Xml filtering subfields

**URL:** <https://discuss.elastic.co/t/xml-filtering-subfields/177436>\
**Category:** Logstash\
**Created:** [April 18, 2019, 10:08am UTC](https://discuss.elastic.co/t/xml-filtering-subfields/177436 "2019-04-18T10:08:41Z")\
**Posts on this page:** 2\
**Page:** 2

<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:** [May 15, 2019, 10:39pm UTC](https://discuss.elastic.co/t/xml-filtering-subfields/177436/21 "2019-05-15T22:39:58Z")

</div>

> [@Badger](#):
>
> code =\> ' FieldName = "[theXML][Event][EventData][Data]" e = event.get(FieldName)

Oh, maybe

```
    init => '
        FieldName = "[theXML][Event][EventData][Data]"
    '
    code => '
        e = event.get(FieldName)

```

works? I cannot test it just now.

---

<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:** [June 13, 2019, 5:55am UTC](https://discuss.elastic.co/t/xml-filtering-subfields/177436/23 "2019-06-13T05:55:33Z")

</div>

Closed on June 13, 2019, 5:55am UTC

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

[Previous page](https://discuss.elastic.co/t/xml-filtering-subfields/177436.md?page=1)
