# How to set an Environment variable in Http\_poller

**URL:** <https://discuss.elastic.co/t/how-to-set-an-environment-variable-in-http-poller/210757>\
**Category:** Logstash\
**Created:** [December 5, 2019, 5:59pm UTC](https://discuss.elastic.co/t/how-to-set-an-environment-variable-in-http-poller/210757 "2019-12-05T17:59:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamalesh](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kamalesh](https://discuss.elastic.co/u/kamalesh)\
**Post date:** [December 5, 2019, 5:59pm UTC](https://discuss.elastic.co/t/how-to-set-an-environment-variable-in-http-poller/210757/1 "2019-12-05T17:59:08Z")

</div>

Hi All,

I am trying to use Environment variable in http\_poller in the Url part but not sure on how to do it and where it need to be configured  
Can any one please let me know where i need to set the environment variable as i need to replace the Common base url with 'ADDRESS'

Ex:  
input {  
http\_poller {  
urls =\> {  
test2 =\> {  
method =\> get  
url =\> "http://{ADDRESS}:8080/Fred.txt" url2 =\> "http://{ADDRESS}:8080/region/help/centre"  
}  
}

Address = '[https://teedeeudeu.com/help/region/](https://teedeeudeu.com/help/region/)'

---

<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 2, 2020, 5:59pm UTC](https://discuss.elastic.co/t/how-to-set-an-environment-variable-in-http-poller/210757/2 "2020-01-02T17:59:35Z")

</div>

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