# Logstash, variable in rest request

**URL:** <https://discuss.elastic.co/t/logstash-variable-in-rest-request/128112>\
**Category:** Logstash\
**Created:** [April 16, 2018, 7:10am UTC](https://discuss.elastic.co/t/logstash-variable-in-rest-request/128112 "2018-04-16T07:10:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wolfik](https://avatars.discourse-cdn.com/v4/letter/w/2acd7d/32.png) [@wolfik](https://discuss.elastic.co/u/wolfik)\
**Post date:** [April 16, 2018, 7:10am UTC](https://discuss.elastic.co/t/logstash-variable-in-rest-request/128112/1 "2018-04-16T07:10:26Z")

</div>

Hi,  
I need to extract data to elasticsearch by logstash via REST services (Simple GET request). I used Http\_poller which works great, but now I need to add variable as a parameter to the request.

[http://localhost:8080/v1/udalosti/%{@timestamp}](http://localhost:8080/v1/udalosti/%25%7B@timestamp%7D)

Is it possible to do this via Http\_poller, or are there other REST plugins?

---

<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:** [May 14, 2018, 7:10am UTC](https://discuss.elastic.co/t/logstash-variable-in-rest-request/128112/2 "2018-05-14T07:10:43Z")

</div>

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