# HTTP filter logstash error

**URL:** <https://discuss.elastic.co/t/http-filter-logstash-error/305714>\
**Category:** Logstash\
**Created:** [May 26, 2022, 12:43pm UTC](https://discuss.elastic.co/t/http-filter-logstash-error/305714 "2022-05-26T12:43:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishnuhngama](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishnuhngama/32/121579_2.png) [@vishnuhngama](https://discuss.elastic.co/u/vishnuhngama)\
**Post date:** [May 26, 2022, 12:43pm UTC](https://discuss.elastic.co/t/http-filter-logstash-error/305714/1 "2022-05-26T12:43:45Z")

</div>

Hi Team,

We are facing issue while using http filter in logstash .  
We are using file input plugin to read from a file and then use the message field in http filter  
please see the code. Please help u actually its a urgent requirement

```auto
input {
        file {
        path => "/root/artist_0.csv"
        start_position => "beginning"
        sincedb_path => "/dev/null"
        }
}
filter {
        mutate {
        gsub => [
          "message", "artist-", ""
        ]
      }
        http {
           url => "http://10.102.0.37:9200/hungamamusic/_count"
           query => { "[details_track][singerf]" => "%{message}" }
           verb => GET
           target_body => api_response
        }
#json {
# source => "api_response"
#}

}
output {
        stdout {codec => rubydebug}
}

```

---

<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:** [May 26, 2022, 4:50pm UTC](https://discuss.elastic.co/t/http-filter-logstash-error/305714/2 "2022-05-26T16:50:07Z")

</div>

> [@vishnuhngama](#):
>
> We are facing issue while using http filter

What issue?

---

<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:** [June 23, 2022, 4:50pm UTC](https://discuss.elastic.co/t/http-filter-logstash-error/305714/3 "2022-06-23T16:50:24Z")

</div>

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