# Getting error while executing logstash conf file

**URL:** <https://discuss.elastic.co/t/getting-error-while-executing-logstash-conf-file/25422>\
**Category:** Logstash\
**Created:** [July 13, 2015, 9:31am UTC](https://discuss.elastic.co/t/getting-error-while-executing-logstash-conf-file/25422 "2015-07-13T09:31:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashok](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Ashok](https://discuss.elastic.co/u/Ashok)\
**Post date:** [July 13, 2015, 9:31am UTC](https://discuss.elastic.co/t/getting-error-while-executing-logstash-conf-file/25422/1 "2015-07-13T09:31:25Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Ashok](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Ashok](https://discuss.elastic.co/u/Ashok)\
**Post date:** [July 13, 2015, 9:33am UTC](https://discuss.elastic.co/t/getting-error-while-executing-logstash-conf-file/25422/2 "2015-07-13T09:33:59Z")

</div>

This is my conf file.  
input {  
file {  
path =\> "D:/Log/log1.txt"  
type =\> "core2"  
start\_position =\> "beginning"  
}  
}  
filter {  
csv {  
columns =\> ["TYPE","TIMESTAMP", "MESSAGE", "APPNAME"]  
separator =\> ","  
}  
}

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

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 13, 2015, 9:36am UTC](https://discuss.elastic.co/t/getting-error-while-executing-logstash-conf-file/25422/3 "2015-07-13T09:36:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ashok](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Ashok](https://discuss.elastic.co/u/Ashok)\
**Post date:** [July 13, 2015, 10:03am UTC](https://discuss.elastic.co/t/getting-error-while-executing-logstash-conf-file/25422/4 "2015-07-13T10:03:51Z")

</div>

Yes Elasticsearch is running and it is healthy.  
Getting following info when i run above command.  
{"cluster\_name":"myelasticsearch","status":"yellow","timed\_out":false,"number\_of\_nodes":1,"number\_of\_data\_nodes":1,"active\_primary\_shards":44,"active\_shards":44,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":44,"number\_of\_pending\_tasks":0,"number\_of\_in\_flight\_fetch":0}

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 13, 2015, 10:12am UTC](https://discuss.elastic.co/t/getting-error-while-executing-logstash-conf-file/25422/5 "2015-07-13T10:12:43Z")

</div>

You have renamed your cluster to "myelasticsearch" but you haven't configured Logstash to connect to that cluster. Adjust the [`cluster`](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-cluster) parameter of your elasitcsearch output accordingly.

---

<div class="post-metadata">

**Author:** ![Ashok](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Ashok](https://discuss.elastic.co/u/Ashok)\
**Post date:** [July 13, 2015, 10:24am UTC](https://discuss.elastic.co/t/getting-error-while-executing-logstash-conf-file/25422/6 "2015-07-13T10:24:27Z")

</div>

Thank you magnusbaeck  
It is working fine now 😄

---

<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:** [July 6, 2017, 5:34am UTC](https://discuss.elastic.co/t/getting-error-while-executing-logstash-conf-file/25422/7 "2017-07-06T05:34:53Z")

</div>


