# Logstash not creating indexes

**URL:** <https://discuss.elastic.co/t/logstash-not-creating-indexes/87749>\
**Category:** Logstash\
**Created:** [May 31, 2017, 1:25pm UTC](https://discuss.elastic.co/t/logstash-not-creating-indexes/87749 "2017-05-31T13:25:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![script007](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@script007](https://discuss.elastic.co/u/script007)\
**Post date:** [May 31, 2017, 1:25pm UTC](https://discuss.elastic.co/t/logstash-not-creating-indexes/87749/1 "2017-05-31T13:25:54Z")

</div>

# Hi team, i am new and trying to a new setup and trying to setup for snmptraps.

# conf file: input { snmptrap { type =\> "traps" community =\> "public" host =\> "0.0.0.0" port =\> 1062 codec =\> "collectd" yamlmibdir =\> "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/snmp-1.2.0/data/ruby/snmp/mibs" } } filter { ruby { code =\> "event['time\_difference']= (Time.parse(event['received\_at']).to\_i) - (Time.parse(event['@timestamp']).to\_i)" } } output { elasticsearch { hosts =\> ['localhost:9200'] } stdout { codec =\> rubydebug { metadata =\> true } } }

# Logstash log message output: [2017-05-31T13:54:31,703][INFO][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=\>{:removed=\>[], :added=\>[[http://localhost:9200/](http://localhost:9200/)]}} [2017-05-31T13:54:31,707][INFO][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck\_url=\>[http://localhost:9200/](http://localhost:9200/), :path=\>"/"} [2017-05-31T13:54:31,794][WARN][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=\>#\<URI::HTTP:0x26f05a5 URL:[http://localhost:9200/](http://localhost:9200/)\>} [2017-05-31T13:54:31,796][INFO][logstash.outputs.elasticsearch] Using mapping template from {:path=\>nil} [2017-05-31T13:54:31,843][INFO][logstash.outputs.elasticsearch] Attempting to install template {:manage\_template=\>{"template"=\>"logstash-_", "version"=\>50001, "settings"=\>{"index.refresh\_interval"=\>"5s"}, "mappings"=\>{"default"=\>{"\_all"=\>{"enabled"=\>true, "norms"=\>false}, "dynamic\_templates"=\>[{"message\_field"=\>{"path\_match"=\>"message", "match\_mapping\_type"=\>"string", "mapping"=\>{"type"=\>"text", "norms"=\>false}}}, {"string\_fields"=\>{"match"=\>"_", "match\_mapping\_type"=\>"string", "mapping"=\>{"type"=\>"text", "norms"=\>false, "fields"=\>{"keyword"=\>{"type"=\>"keyword"}}}}}], "properties"=\>{"@timestamp"=\>{"type"=\>"date", "include\_in\_all"=\>false}, "@version"=\>{"type"=\>"keyword", "include\_in\_all"=\>false}, "geoip"=\>{"dynamic"=\>true, "properties"=\>{"ip"=\>{"type"=\>"ip"}, "location"=\>{"type"=\>"geo\_point"}, "latitude"=\>{"type"=\>"half\_float"}, "longitude"=\>{"type"=\>"half\_float"}}}}}}}} [2017-05-31T13:54:31,848][INFO][logstash.outputs.elasticsearch] New Elasticsearch output {:class=\>"LogStash::Outputs::ElasticSearch", :hosts=\>[#\<URI::Generic:0x648457f6 URL://localhost\>]} [2017-05-31T13:54:31,851][INFO][logstash.pipeline] Starting pipeline {"id"=\>"main", "pipeline.workers"=\>4, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>5, "pipeline.max\_inflight"=\>500} [2017-05-31T13:54:32,043][INFO][logstash.pipeline] Pipeline main started [2017-05-31T13:54:32,096][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}

but nothing gets created..

Any suggestion?

regards  
CS

---

<div class="post-metadata">

**Author:** ![Jaxon\_Kochel](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@Jaxon\_Kochel](https://discuss.elastic.co/u/Jaxon_Kochel)\
**Post date:** [May 31, 2017, 6:38pm UTC](https://discuss.elastic.co/t/logstash-not-creating-indexes/87749/2 "2017-05-31T18:38:11Z")

</div>

make sure that you put stdout { codec =\> rubydebug } in the output section. such as this

```
> output { #The output section tells where the output will go
> elasticsearch{ #Output will be going to elasticsearch  
> hosts => ["elasticsearch:9200"]                           
> index => "finalindex" #name of the index that the output will be stored
> }
> stdout { codec => rubydebug } #Outputs the contents of the message to the command prompt
> }

```

if you still arent getting any output then you likely have an issue with how you are getting your input

---

<div class="post-metadata">

**Author:** ![script007](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@script007](https://discuss.elastic.co/u/script007)\
**Post date:** [June 1, 2017, 7:10am UTC](https://discuss.elastic.co/t/logstash-not-creating-indexes/87749/3 "2017-06-01T07:10:08Z")

</div>

Hi Jaxon,  
Thanks for your reply, will check that now.  
Regards  
CS

---

<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:** [June 29, 2017, 7:10am UTC](https://discuss.elastic.co/t/logstash-not-creating-indexes/87749/4 "2017-06-29T07:10:24Z")

</div>

Closed on June 29, 2017, 7:10am UTC

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