Getting error while executing logstash conf file

(Ashok Gandla) #1

Hi Team,
Getting folloowing error while executing logstash conf file.
←**[31mGot error to send bulk of actions: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];[SERVICE_UNAVAILABLE/2/no master]; {:level=>:error}←[0m**
←[33mFailed to flush outgoing items {:outgoing_count=>54, :exception=>org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized]

Can you please help me?

(Ashok Gandla) #2

This is my conf file.
input {
file {
path => "D:/Log/log1.txt"
type => "core2"
start_position => "beginning"
filter {
csv {
separator => ","

output {
elasticsearch {
action => "index"
host => "localhost"
index => "logstash-%{+YYYY.MM.dd}"
workers => 1
stdout {
codec => rubydebug

(Magnus Bäck) #3

Is Elasticsearch running? Is it healthy (visit http://localhost:9200/_cluster/health)? Anything interesting in its logs?

(Ashok Gandla) #4

Yes Elasticsearch is running and it is healthy.
Getting following info when i run above command.

(Magnus Bäck) #5

You have renamed your cluster to "myelasticsearch" but you haven't configured Logstash to connect to that cluster. Adjust the cluster parameter of your elasitcsearch output accordingly.

(Ashok Gandla) #6

Thank you magnusbaeck
It is working fine now :smile:

(system) #7