# \[solved\]Configuration input http\_poller + TCP

**URL:** <https://discuss.elastic.co/t/solved-configuration-input-http-poller-tcp/101118>\
**Category:** Logstash\
**Created:** [September 20, 2017, 7:14am UTC](https://discuss.elastic.co/t/solved-configuration-input-http-poller-tcp/101118 "2017-09-20T07:14:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sparis](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@sparis](https://discuss.elastic.co/u/sparis)\
**Post date:** [September 20, 2017, 7:14am UTC](https://discuss.elastic.co/t/solved-configuration-input-http-poller-tcp/101118/1 "2017-09-20T07:14:00Z")

</div>

Hello,

I have two files .conf.

First have 1 input jdbc to taking data from mysql bdd / no filter / output TCP to logstash.  
With this data, i build url for API. ex : [https://nomapi/var1/var2/var3](https://nomapi/var1/var2/var3)  
This .conf is ok.

```
input {
jdbc {
        jdbc_driver_library => ""
        jdbc_driver_class => "com.mysql.jdbc.Driver"
        jdbc_connection_string => ""
        jdbc_user => "user"
        jdbc_password => "pass"
        schedule => "* * * * *"
        statement => "myrequest"
output {
tcp {
 host => ""
 port => "5000"
 mode => "client"
}
stdout { codec => json }
}

```

Second have 2 inputs, one is TCP for data, second is http\_poller.  
I need url builded in http\_poller but i dont understand how ?

```
input {
tcp {
 port => 5000
 codec => "json_lines"
}
http_poller {
        urls => {
                myurl => "http://%{datafromtcp}"
        }
}
}
output {
stdout {
codec => json
}
}

```

Thanks you

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 23, 2017, 6:10pm UTC](https://discuss.elastic.co/t/solved-configuration-input-http-poller-tcp/101118/2 "2017-09-23T18:10:29Z")

</div>

So you want to receive data from the tcp input and use pieces of those events to configure the http\_poller input? That's not supported.

---

<div class="post-metadata">

**Author:** ![sparis](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@sparis](https://discuss.elastic.co/u/sparis)\
**Post date:** [September 26, 2017, 7:04am UTC](https://discuss.elastic.co/t/solved-configuration-input-http-poller-tcp/101118/3 "2017-09-26T07:04:45Z")

</div>

Thanks you for your response.

Yes but i found a solution so it's ok.

INPUT  
-jdbc

FILTER  
filter rest  
filter json  
filter split  
filter prune

OUTPUT  
plugin redis

---

<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:** [October 24, 2017, 7:05am UTC](https://discuss.elastic.co/t/solved-configuration-input-http-poller-tcp/101118/4 "2017-10-24T07:05:02Z")

</div>

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