# Processors not working

**URL:** <https://discuss.elastic.co/t/processors-not-working/121445>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 26, 2018, 7:36am UTC](https://discuss.elastic.co/t/processors-not-working/121445 "2018-02-26T07:36:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Feng\_Mi](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@Feng\_Mi](https://discuss.elastic.co/u/Feng_Mi)\
**Post date:** [February 26, 2018, 7:36am UTC](https://discuss.elastic.co/t/processors-not-working/121445/1 "2018-02-26T07:36:44Z")

</div>

```
#=========================== Filebeat prospectors =============================
filebeat.config.prospectors:
  enabled: true
  path: conf.d/*.yml

#============================= Filebeat modules ===============================

filebeat.config.modules:
  enabled: false
  # Glob pattern for configuration loading
  path: ${path.config}/modules.d/*.yml

  # Set to true to enable config reloading
  reload.enabled: false

  # Period on which files under path should be checked for changes
  #reload.period: 10s

#==================== Elasticsearch template setting ==========================
processors:
- include_fields:
    fields: ["json.stars", "json.PT", "json.clientVer", "json.resVersion", "json.offline", "json.levelid", "json._serverDate"]
```

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [February 27, 2018, 3:50am UTC](https://discuss.elastic.co/t/processors-not-working/121445/2 "2018-02-27T03:50:19Z")

</div>

Why you think they are not working?

Do you have full configs? I see you have external prospector config loading enabled, but without those configs I'm missing context.

---

<div class="post-metadata">

**Author:** ![Feng\_Mi](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@Feng\_Mi](https://discuss.elastic.co/u/Feng_Mi)\
**Post date:** [February 27, 2018, 6:25am UTC](https://discuss.elastic.co/t/processors-not-working/121445/3 "2018-02-27T06:25:02Z")

</div>

Thank you, I fixed it.

> ```
> - type: log
> enabled: true
> paths:
> - /var/www/statistic/ck4/local_logs/ad_info.log
> fields:
> app: ck4
> log_type: ad_info
> json.keys_under_root: false
> processors:
> - include_fields:
> fields: ["fields.log_type", "fields.app", "json.cur_page", "json.PID", "json._serverDate", "json.placement", "json.location", "json.PT"]
> - drop_event:
> when:
> not:
> or:
> - equals:
> json.cur_page: 1
> - equals:
> json.cur_page: 2
> - equals:
> json.cur_page: 4
> 
> ```

This is the correct config.

---

<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:** [March 27, 2018, 6:25am UTC](https://discuss.elastic.co/t/processors-not-working/121445/4 "2018-03-27T06:25:31Z")

</div>

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