# How to Use dynamic URL in http\_poller

**URL:** https://discuss.elastic.co/t/how-to-use-dynamic-url-in-http-poller/161658
**Category:** Logstash
**Created:** [December 20, 2018, 10:37am UTC](https://discuss.elastic.co/t/how-to-use-dynamic-url-in-http-poller/161658 "2018-12-20T10:37:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kausik](https://avatars.discourse-cdn.com/v4/letter/k/ba8739/32.png) [@kausik](https://discuss.elastic.co/u/kausik)
#### Post date: [December 20, 2018, 10:37am UTC](https://discuss.elastic.co/t/how-to-use-dynamic-url-in-http-poller/161658/1 "2018-12-20T10:37:26Z")

</div>

I am using http\_poller input plugin of Logstash to read logs stored in an URL endpoint. But the URL is not constant. It will change every time. I can restart the Logstash agent every time whenever new URL comes but it not seems a good way to handle. Please suggest me any better option to overcome this situation.

Also these URLs are stored in a SQL table. I am running another Logstash agent which is taking the URL endpoint from the table and writing the same to http\_poller Logstash config file. But restart require whenever new entry comes in the table as config will change. please suggest a better solution for this entire scenario.

Ask for any further information, if required. Thanks in advance.

---

<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: [January 17, 2019, 10:37am UTC](https://discuss.elastic.co/t/how-to-use-dynamic-url-in-http-poller/161658/2 "2019-01-17T10:37:39Z")

</div>

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