# Logstash Elasticsearch Input Plugin no source data

**URL:** <https://discuss.elastic.co/t/logstash-elasticsearch-input-plugin-no-source-data/138697>\
**Category:** Logstash\
**Created:** [July 5, 2018, 10:50am UTC](https://discuss.elastic.co/t/logstash-elasticsearch-input-plugin-no-source-data/138697 "2018-07-05T10:50:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefah](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@stefah](https://discuss.elastic.co/u/stefah)\
**Post date:** [July 5, 2018, 10:50am UTC](https://discuss.elastic.co/t/logstash-elasticsearch-input-plugin-no-source-data/138697/1 "2018-07-05T10:50:04Z")

</div>

Hi,

I've encountered the following problem with ES 5.4 and LS 5.4./6.3: I want to read from an elasticsearch cluster with logstash but no document data is returned, just:

```
{"@timestamp":"2018-07-05T10:34:57.049Z","@version":"1"}{"@timestamp":"2018-07-05T10:34:57.049Z","@version":"1"}

```

with the following logstash configuration:

```
input {
  elasticsearch {
    hosts => "<my-cluster>"
    index => "mydata-2018.09.*"
    query => '{ "query": { "query_string": { "query": "*" } } }'
    scroll => "5m"
    docinfo => true
  }
}
output {
  stdout { 
    codec => json
 }
  elasticsearch {
    index => "copy-of-production.%{[@metadata][_index]}"
    document_type => "%{[@metadata][_type]}"
    document_id => "%{[@metadata][_id]}"
  }
}

```

The metadata Index is perfectly fine created, however there is no source imported.

Did I miss something in the configuration?

Cheers,  
Stefan

---

<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 2, 2018, 10:50am UTC](https://discuss.elastic.co/t/logstash-elasticsearch-input-plugin-no-source-data/138697/2 "2018-08-02T10:50:09Z")

</div>

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