# Http filter - undefined local variable or method \`parameters\_sprintfed'

**URL:** <https://discuss.elastic.co/t/http-filter-undefined-local-variable-or-method-parameters-sprintfed/169905>\
**Category:** Logstash\
**Created:** [February 25, 2019, 8:48pm UTC](https://discuss.elastic.co/t/http-filter-undefined-local-variable-or-method-parameters-sprintfed/169905 "2019-02-25T20:48:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DefensiveDepth](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/defensivedepth/32/110034_2.png) [@DefensiveDepth](https://discuss.elastic.co/u/DefensiveDepth)\
**Post date:** [February 25, 2019, 8:48pm UTC](https://discuss.elastic.co/t/http-filter-undefined-local-variable-or-method-parameters-sprintfed/169905/1 "2019-02-25T20:48:53Z")

</div>

I have a very simple pipeline using the following http filter, but I continue to get errors (see here: [https://gist.github.com/defensivedepth/7b8d22aeec6dedac6438d8adeaed4b1d](https://gist.github.com/defensivedepth/7b8d22aeec6dedac6438d8adeaed4b1d))

I have tried different sites, different settings, but always come back to this error.

Any ideas on what to check? Logstash 6.6.1

input {  
file {  
path =\> "/input\*.json"  
codec =\> json  
}

}

filter {  
http {  
url =\> "[https://site.com/%{identifier}](https://site.com/%25%7Bidentifier%7D)"  
}

}

output {  
stdout {}  
}

---

<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:** [February 25, 2019, 9:12pm UTC](https://discuss.elastic.co/t/http-filter-undefined-local-variable-or-method-parameters-sprintfed/169905/2 "2019-02-25T21:12:07Z")

</div>

Ouch! The workaround is to lower the log.level to info.

This [debug message](https://github.com/logstash-plugins/logstash-filter-http/blob/9d9a837f85f1e8c6ac759fe7202427ed2351069b/lib/logstash/filters/http.rb#L54) needs to be fixed.

---

<div class="post-metadata">

**Author:** ![DefensiveDepth](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/defensivedepth/32/110034_2.png) [@DefensiveDepth](https://discuss.elastic.co/u/DefensiveDepth)\
**Post date:** [February 25, 2019, 9:18pm UTC](https://discuss.elastic.co/t/http-filter-undefined-local-variable-or-method-parameters-sprintfed/169905/3 "2019-02-25T21:18:20Z")

</div>

Wow. Yep.

That fixed it.

Thanks @Badger

---

<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 25, 2019, 9:18pm UTC](https://discuss.elastic.co/t/http-filter-undefined-local-variable-or-method-parameters-sprintfed/169905/4 "2019-03-25T21:18:21Z")

</div>

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