# Filtering logs in logstash

**URL:** <https://discuss.elastic.co/t/filtering-logs-in-logstash/275245>\
**Category:** Logstash\
**Created:** [June 8, 2021, 7:44am UTC](https://discuss.elastic.co/t/filtering-logs-in-logstash/275245 "2021-06-08T07:44:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zubaer\_Ahmad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zubaer_ahmad/32/85883_2.png) [@Zubaer\_Ahmad](https://discuss.elastic.co/u/Zubaer_Ahmad)\
**Post date:** [June 8, 2021, 7:44am UTC](https://discuss.elastic.co/t/filtering-logs-in-logstash/275245/1 "2021-06-08T07:44:48Z")

</div>

I am trying to filter the following log in logstash but couldn't make it work. Can anyone help me on this. thanks

```auto
debug | 2021-06-08 12:02:50 | +3ms | SCHEDULER | REQUEST_ID: ff23e465-7d36-42ea-9a2b-2ba734dde41b | IP_ADDRESS: 2-10.16.67.9 | METHOD: RenewSubscriptionWithDob | TYPE: REQUEST | DATA : {"eachRetry":{"id":823609,"customer_id":1371304,"device_type":"mobile","payment_mode":"mife","phone":"1822713187","package_id":25,"charge_amount":6.66,"no_of_validity_days":1,"auto_renewal":1,"status_id":3,"retry_count":30,"remarks":null},"devType":"mobile"} 

```

---

<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:** [June 8, 2021, 5:02pm UTC](https://discuss.elastic.co/t/filtering-logs-in-logstash/275245/2 "2021-06-08T17:02:38Z")

</div>

What filter configuration are you using?

---

<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:** [July 6, 2021, 5:03pm UTC](https://discuss.elastic.co/t/filtering-logs-in-logstash/275245/3 "2021-07-06T17:03:30Z")

</div>

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