# Add frequency to elatize data logstash

**URL:** https://discuss.elastic.co/t/add-frequency-to-elatize-data-logstash/242552
**Category:** Logstash
**Created:** [July 24, 2020, 5:52pm UTC](https://discuss.elastic.co/t/add-frequency-to-elatize-data-logstash/242552 "2020-07-24T17:52:23Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Gabriel\_Mare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabriel_mare/32/73265_2.png) [@Gabriel\_Mare](https://discuss.elastic.co/u/Gabriel_Mare)
#### Post date: [July 24, 2020, 5:52pm UTC](https://discuss.elastic.co/t/add-frequency-to-elatize-data-logstash/242552/1 "2020-07-24T17:52:24Z")

</div>

Hi,

I need to add frequency to elastize data in my elasticsearch.  
I'm using stdin input and I don't know which the parameter/variable relationated with frequency.

Somebody can help me?

---

<div class="post-metadata">

### Author: ![kelk](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@kelk](https://discuss.elastic.co/u/kelk)
#### Post date: [July 25, 2020, 11:03am UTC](https://discuss.elastic.co/t/add-frequency-to-elatize-data-logstash/242552/2 "2020-07-25T11:03:52Z")

</div>

not sure on your exact query.  
Do you mean

- frequency of a term within data (i.e. like the [termvectors](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-termvectors.html))
- Or is it more of frequency of data collection? How quick should you poll ?

---

<div class="post-metadata">

### Author: ![Gabriel\_Mare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabriel_mare/32/73265_2.png) [@Gabriel\_Mare](https://discuss.elastic.co/u/Gabriel_Mare)
#### Post date: [July 27, 2020, 12:00am UTC](https://discuss.elastic.co/t/add-frequency-to-elatize-data-logstash/242552/3 "2020-07-27T00:00:04Z")

</div>

Refresh data already stored by establishing a frequency to refresh of this data.

I obtain the data from a web service, for which if the data of the web service changes I need to update it in my logstash automatically by means of a certain elastication frequency.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [July 27, 2020, 12:01am UTC](https://discuss.elastic.co/t/add-frequency-to-elatize-data-logstash/242552/4 "2020-07-27T00:01:45Z")

</div>

Welcome to our community! 😃

What sort of data is this?

---

<div class="post-metadata">

### Author: ![Gabriel\_Mare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabriel_mare/32/73265_2.png) [@Gabriel\_Mare](https://discuss.elastic.co/u/Gabriel_Mare)
#### Post date: [July 27, 2020, 12:33am UTC](https://discuss.elastic.co/t/add-frequency-to-elatize-data-logstash/242552/5 "2020-07-27T00:33:04Z")

</div>

Can be json, html, xml or csv.

I'm using input stdin.

---

<div class="post-metadata">

### Author: ![kelk](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@kelk](https://discuss.elastic.co/u/kelk)
#### Post date: [July 27, 2020, 7:09am UTC](https://discuss.elastic.co/t/add-frequency-to-elatize-data-logstash/242552/6 "2020-07-27T07:09:15Z")

</div>

ok. So what you are looking is more like scheduling/cron type of pulling from the web-service?

If you look into the relevant [input plugins of logstash](https://www.elastic.co/guide/en/logstash/current/input-plugins.html), you will find some modules contain scheduling/cron built in

For example for a web-service, you can use [http\_poller](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-http_poller.html) , but depends on what you exactly want..

Something of concept like below should be good starting point

```auto
input {
  http_poller {
    urls => {
      webservice1 => "http://localhost:9200"
     }
    }
    request_timeout => 60
    # Supports "cron", "every", "at" and "in" schedules by rufus scheduler
    schedule => { cron => "* * * * * UTC"}
    codec => "json"
    # A hash of request metadata info (timing, response headers, etc.) will be sent here
    metadata_target => "http_poller_metadata"
  }

```

}

---

<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 24, 2020, 7:09am UTC](https://discuss.elastic.co/t/add-frequency-to-elatize-data-logstash/242552/7 "2020-08-24T07:09:17Z")

</div>

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