Bonjour,
En fait lorsque j'essaie de collecter des données sur logstash, ils arrivent pas sur elasticsearch et j'obtient l'erreur suivante dans elasticsearch.log :
[r.suppressed ] [mondomaine.fr] path: /.kibana/_doc/space%3Adefault, params: {index=.kibana, id=space:default}
org.elasticsearch.action.NoShardAvailableActionException: No shard available for [get [.kibana][_doc][space:default]: routing [null]]
Alors que quand je fais un systemctl status elasticsearch il me montre pas d'erreur ni sur elasticsearch ni sur logstash . Sachant que j'arrivais bien à collecter des données.
sur logstash j'obtient cela :
Sending Logstash logs to /var/log/logstash which is now configured via log4j2.properties
[2019-08-07T15:32:02,489][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2019-08-07T15:32:02,611][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.1.1"}
[2019-08-07T15:32:31,172][INFO ][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=>{:removed=>, :added=>[http://localhost:9200/]}}
[2019-08-07T15:32:31,571][WARN ][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=>"http://localhost:9200/"}
[2019-08-07T15:32:31,854][INFO ][logstash.outputs.elasticsearch] ES Output version determined {:es_version=>7}
[2019-08-07T15:32:31,861][WARN ][logstash.outputs.elasticsearch] Detected a 6.x and above cluster: the type
event field won't be used to determine the document _type {:es_version=>7}
[2019-08-07T15:32:31,951][INFO ][logstash.outputs.elasticsearch] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["//localhost:9200"]}
[2019-08-07T15:32:31,968][INFO ][logstash.outputs.elasticsearch] Using default mapping template
[2019-08-07T15:32:32,095][INFO ][logstash.javapipeline ] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>2, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50, "pipeline.max_inflight"=>250, :thread=>"#<Thread:0x5101b747 run>"}
[2019-08-07T15:32:32,326][INFO ][logstash.outputs.elasticsearch] Attempting to install template {:manage_template=>{"index_patterns"=>"logstash-", "version"=>60001, "settings"=>{"index.refresh_interval"=>"5s", "number_of_shards"=>1}, "mappings"=>{"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", "ignore_above"=>256}}}}}], "properties"=>{"@timestamp"=>{"type"=>"date"}, "@version"=>{"type"=>"keyword"}, "geoip"=>{"dynamic"=>true, "properties"=>{"ip"=>{"type"=>"ip"}, "location"=>{"type"=>"geo_point"}, "latitude"=>{"type"=>"half_float"}, "longitude"=>{"type"=>"half_float"}}}}}}}
[2019-08-07T15:32:33,235][INFO ][logstash.inputs.file ] No sincedb_path set, generating one based on the "path" setting {:sincedb_path=>"/var/lib/logstash/plugins/inputs/file/.sincedb_b48f39ed4259efb6b2b0c39cd2786443", :path=>["/home/osadmin/test"]}
[2019-08-07T15:32:33,292][INFO ][logstash.javapipeline ] Pipeline started {"pipeline.id"=>"main"}
[2019-08-07T15:32:33,512][INFO ][filewatch.observingtail ] START, creating Discoverer, Watch with file and sincedb collections
[2019-08-07T15:32:33,621][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>}
[2019-08-07T15:32:35,169][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
J'aimerais bien comprendre d'où vient cette erreur et comment la corriger.
Je vous remercie par avance