# How to make input processor process all data?

**URL:** <https://discuss.elastic.co/t/how-to-make-input-processor-process-all-data/259067>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 18, 2020, 8:10am UTC](https://discuss.elastic.co/t/how-to-make-input-processor-process-all-data/259067 "2020-12-18T08:10:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dukeyang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dukeyang/32/80951_2.png) [@dukeyang](https://discuss.elastic.co/u/dukeyang)\
**Post date:** [December 18, 2020, 8:10am UTC](https://discuss.elastic.co/t/how-to-make-input-processor-process-all-data/259067/1 "2020-12-18T08:10:24Z")

</div>

In my application, there are multiple logs that need to process, I want every log has its own processors.  
BUT processors under specific input only process data collected by this input;

```auto
- type: log
  paths:
    - ./data.log
  fields_under_root: true
  fields:
    '@log_type': data
    namespace: data
    net_pub: 1
  json.keys_under_root: true
  json.overwrite_keys: true
  json.add_error_key: false
  processors:
    - copy_fields:
        fields:
          - from: host.name
            to: srv_host
          - from: dur
            to: mydur-data
        fail_on_error: false
        ignore_missing: true
    - drop_fields:
        fields: ["agent","host","log","ecs"]

```

how to make it also process all data collected by Filebeat?

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [December 18, 2020, 9:02am UTC](https://discuss.elastic.co/t/how-to-make-input-processor-process-all-data/259067/2 "2020-12-18T09:02:20Z")

</div>

Not sure if I understand your problem. You define processors globally, so they can process all data (top-level processors): [https://www.elastic.co/guide/en/beats/filebeat/current/defining-processors.html#where-valid](https://www.elastic.co/guide/en/beats/filebeat/current/defining-processors.html#where-valid)

---

<div class="post-metadata">

**Author:** ![dukeyang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dukeyang/32/80951_2.png) [@dukeyang](https://discuss.elastic.co/u/dukeyang)\
**Post date:** [December 19, 2020, 6:56am UTC](https://discuss.elastic.co/t/how-to-make-input-processor-process-all-data/259067/3 "2020-12-19T06:56:59Z")

</div>

yes, top-level processors can work. but in my scenario, every input must have its own processor list which totally diffent. so I cant use a top-level processor ;

---

<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 16, 2021, 8:57am UTC](https://discuss.elastic.co/t/how-to-make-input-processor-process-all-data/259067/4 "2021-01-16T08:57:00Z")

</div>

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