# Http input logstash I want filter logs

**URL:** https://discuss.elastic.co/t/http-input-logstash-i-want-filter-logs/307724
**Category:** Logstash
**Created:** [June 21, 2022, 7:04am UTC](https://discuss.elastic.co/t/http-input-logstash-i-want-filter-logs/307724 "2022-06-21T07:04:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dharminfadia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dharminfadia/32/119587_2.png) [@dharminfadia](https://discuss.elastic.co/u/dharminfadia)
#### Post date: [June 21, 2022, 7:04am UTC](https://discuss.elastic.co/t/http-input-logstash-i-want-filter-logs/307724/1 "2022-06-21T07:04:32Z")

</div>

Hello Everyone

I am using http input plugin in logstash I want to filter only POST request from Perticular URL logs should be input and output to elasticsearch how can I achive this.

---

<div class="post-metadata">

### Author: ![Matt\_Murphy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_murphy/32/108004_2.png) [@Matt\_Murphy](https://discuss.elastic.co/u/Matt_Murphy)
#### Post date: [July 6, 2022, 11:37pm UTC](https://discuss.elastic.co/t/http-input-logstash-i-want-filter-logs/307724/2 "2022-07-06T23:37:12Z")

</div>

[related article](https://discuss.elastic.co/t/if-conditional-with-multiple-outputs/178201)

Give that a read, it'll get you most of the way there. As you will surmise, your conditional will need to be whatever field or array element holds your http method. I think mine are usually just [http][request][method], but you'll want to check your GROK strings to figure out how yours are stored.

---

<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: [August 3, 2022, 11:38pm UTC](https://discuss.elastic.co/t/http-input-logstash-i-want-filter-logs/307724/3 "2022-08-03T23:38:00Z")

</div>

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