# Elasticsearch input plugin stops

**URL:** https://discuss.elastic.co/t/elasticsearch-input-plugin-stops/108844
**Category:** Logstash
**Created:** [November 23, 2017, 9:00am UTC](https://discuss.elastic.co/t/elasticsearch-input-plugin-stops/108844 "2017-11-23T09:00:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ismael\_boumedien](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ismael_boumedien/32/5331_2.png) [@ismael\_boumedien](https://discuss.elastic.co/u/ismael_boumedien)
#### Post date: [November 23, 2017, 9:00am UTC](https://discuss.elastic.co/t/elasticsearch-input-plugin-stops/108844/1 "2017-11-23T09:00:12Z")

</div>

Hello  
i'm using the logstash elasticsearch plugin input, but i find out that logstash stops. I wish to keep logstash tour to retrieve new events coming from elasticsearch.

## My configuration:

input {  
elasticsearch {  
hosts =\> "localhost:9200"  
index =\> "webmethodsmediator"  
query =\> '{ "query": { "match": { "eventType": "TransactionalEvents" } }}'  
scroll =\> "3600"  
}  
}  
filter {  
date {  
match =\> ["creationDate", "UNIX\_MS","UNIX"]  
timezone =\> "UTC+1"  
target =\> "metricDate"

}  
}  
output {

# stdout { codec =\> rubydebug }

## elasticsearch { hosts =\> "localhost:9200" index =\> "selfservice-metrics" } }

Can you tell me how?

Thank you

Ismael

---

<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: [November 23, 2017, 9:36am UTC](https://discuss.elastic.co/t/elasticsearch-input-plugin-stops/108844/2 "2017-11-23T09:36:49Z")

</div>

> i'm using the logstash elasticsearch plugin input, but i find out that logstash stops.

That's the expected behavior as the plugin is currently implemented.

> <https://github.com/logstash-plugins/logstash-input-elasticsearch/issues/32>
>
> Hi there,
> 
> I want to query periodically using date range like (now-1h, now)
> 
> I s…aw the code simply, but this plugin excute query once.
> 
> Is there plan to add interval option?

---

<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: [December 21, 2017, 9:37am UTC](https://discuss.elastic.co/t/elasticsearch-input-plugin-stops/108844/3 "2017-12-21T09:37:11Z")

</div>

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