# Need assistance on combined processors within metricbeat module

**URL:** <https://discuss.elastic.co/t/need-assistance-on-combined-processors-within-metricbeat-module/260416>\
**Category:** Beats\
**Tags:** beats-module, metricbeat\
**Created:** [January 7, 2021, 8:36am UTC](https://discuss.elastic.co/t/need-assistance-on-combined-processors-within-metricbeat-module/260416 "2021-01-07T08:36:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![J\_Weeda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/j_weeda/32/45092_2.png) [@J\_Weeda](https://discuss.elastic.co/u/J_Weeda)\
**Post date:** [January 7, 2021, 8:36am UTC](https://discuss.elastic.co/t/need-assistance-on-combined-processors-within-metricbeat-module/260416/1 "2021-01-07T08:36:08Z")

</div>

Hello, I need assistance on getting a combined processor up and running.  
Situation: I'm running metricbeat 7.9.1. I would like to set up the metricbeat to monitor windows services when:

- `windows.service.display_name` start with 'XYZ' AND
- `windows.service.start_type` is Automatic

I have tried many notations among which below but I can't get the filtering implemented:  
`processors:

```
    - drop_event:

        when:

            and:

                not.regex:

                        - windows.service.display_name: "^XYZ.*"

                not.equals:

                        - windows.service.start_type: "Automatic"`

```

How do I achieve this?

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [January 12, 2021, 7:41pm UTC](https://discuss.elastic.co/t/need-assistance-on-combined-processors-within-metricbeat-module/260416/2 "2021-01-12T19:41:27Z")

</div>

Hey @J_Weeda,

It seems that you are negating the conditions, could you try with the following config, without the `not`s?

```auto
    - drop_event:
        when:
            and:
                regex:
                        - windows.service.display_name: "^XYZ.*"
                equals:
                        - windows.service.start_type: "Automatic"`

```

---

<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:** [February 9, 2021, 9:41pm UTC](https://discuss.elastic.co/t/need-assistance-on-combined-processors-within-metricbeat-module/260416/3 "2021-02-09T21:41:33Z")

</div>

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