# Index, Filter and Query Strategy

**URL:** <https://discuss.elastic.co/t/index-filter-and-query-strategy/25536>\
**Category:** Elasticsearch\
**Created:** [July 14, 2015, 4:18pm UTC](https://discuss.elastic.co/t/index-filter-and-query-strategy/25536 "2015-07-14T16:18:34Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![taylorsuk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/taylorsuk/32/3697_2.png) [@taylorsuk](https://discuss.elastic.co/u/taylorsuk)\
**Post date:** [July 14, 2015, 5:56pm UTC](https://discuss.elastic.co/t/index-filter-and-query-strategy/25536/5 "2015-07-14T17:56:22Z")

</div>

So I am up and running with logstash (kind of!) and have the following config

```
  input {
      file {
        path => "/Users/taylorsuk/Desktop/Exercises_Single.json"
        type => "exercises"
        codec => "json"
      }
    }
    output {
      stdout { codec => rubydebug }
      elasticsearch { 
      host => localhost 
      protocol => http
      }
    }

```

I am getting `waited for 30s and no initial state was set by the discovery` do you have any ideas for where I can get info on getting setup with a simple `input (JSON) > filter / sort > ElasticSearch Index`

Many thanks

---

_[View the full topic](https://discuss.elastic.co/t/index-filter-and-query-strategy/25536)._
