# Logstash fillter

**URL:** <https://discuss.elastic.co/t/logstash-fillter/309846>\
**Category:** Logstash\
**Created:** [July 18, 2022, 6:16am UTC](https://discuss.elastic.co/t/logstash-fillter/309846 "2022-07-18T06:16:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jathurshan\_Sumandira](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jathurshan_sumandira/32/108118_2.png) [@Jathurshan\_Sumandira](https://discuss.elastic.co/u/Jathurshan_Sumandira)\
**Post date:** [July 18, 2022, 6:16am UTC](https://discuss.elastic.co/t/logstash-fillter/309846/1 "2022-07-18T06:16:13Z")

</div>

Hi Team,

We are using 2 filters.  
First one is to get the token and by getting the token we are going to call the next url with bearer token  
First http getting the response but second http method is not giving data

http {  
url =\> "url1"  
verb =\> POST  
headers =\> {  
"Content-Type" =\> "application/encode"  
"Authorization" =\> "Basic auth"  
}  
target\_body =\> api\_token  
}  
http {  
url =\> "url2"  
verb =\> GET  
headers =\> { "Authorization" =\> "Bearer %{api\_token}" }  
target\_body =\> api\_response  
}

---

<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 15, 2022, 6:17am UTC](https://discuss.elastic.co/t/logstash-fillter/309846/2 "2022-08-15T06:17:10Z")

</div>

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