Getting error while executing logstash conf file

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?

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

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

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

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.

Thank you magnusbaeck
It is working fine now :smile: