I have had some good info from a user in answer to my question here and am having issues with my config.
Basically I would like to import / index my pretty JSON file map one field to not_analized
to my remote ElasticSearch index.
I am using this config to test locally:
input {
file {
path => "/Users/taylorsuk/Desktop/Exercises_Single.json"
type => "exercises"
codec => "json"
}
}
output {
stdout { codec => rubydebug }
elasticsearch {
host => "localhost"
protocol => "http"
}
}
and getting this error:
Simons-MacBook-Pro:logstash-1.5.2 taylorsuk$ bin/logstash -f logstash-guru.conf
Jul 14, 2015 7:25:13 PM org.elasticsearch.node.internal.InternalNode <init>
INFO: [logstash-Simons-MacBook-Pro.local-91394-13456] version[1.5.1], pid[91394], build[5e38401/2015-04-09T13:41:35Z]
Jul 14, 2015 7:25:13 PM org.elasticsearch.node.internal.InternalNode <init>
INFO: [logstash-Simons-MacBook-Pro.local-91394-13456] initializing ...
Jul 14, 2015 7:25:13 PM org.elasticsearch.plugins.PluginsService <init>
INFO: [logstash-Simons-MacBook-Pro.local-91394-13456] loaded [], sites []
Jul 14, 2015 7:25:15 PM org.elasticsearch.node.internal.InternalNode <init>
INFO: [logstash-Simons-MacBook-Pro.local-91394-13456] initialized
Jul 14, 2015 7:25:15 PM org.elasticsearch.node.internal.InternalNode start
INFO: [logstash-Simons-MacBook-Pro.local-91394-13456] starting ...
Jul 14, 2015 7:25:15 PM org.elasticsearch.transport.TransportService doStart
INFO: [logstash-Simons-MacBook-Pro.local-91394-13456] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/192.168.0.11:9300]}
Jul 14, 2015 7:25:15 PM org.elasticsearch.discovery.DiscoveryService doStart
INFO: [logstash-Simons-MacBook-Pro.local-91394-13456] elasticsearch/CHxctaujSuWMn4MUz2xmEg
Jul 14, 2015 7:25:45 PM org.elasticsearch.discovery.DiscoveryService waitForInitialState
WARNING: [logstash-Simons-MacBook-Pro.local-91394-13456] waited for 30s and no initial state was set by the discovery
Jul 14, 2015 7:25:45 PM org.elasticsearch.node.internal.InternalNode start
INFO: [logstash-Simons-MacBook-Pro.local-91394-13456] started
Failed to install template: waited for [30s] {:level=>:error}
Many thanks in advance.
Simon