# Logstash is failing

**URL:** <https://discuss.elastic.co/t/logstash-is-failing/136933>\
**Category:** Logstash\
**Created:** [June 21, 2018, 7:21pm UTC](https://discuss.elastic.co/t/logstash-is-failing/136933 "2018-06-21T19:21:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandeepnarla22322](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@sandeepnarla22322](https://discuss.elastic.co/u/sandeepnarla22322)\
**Post date:** [June 21, 2018, 7:21pm UTC](https://discuss.elastic.co/t/logstash-is-failing/136933/1 "2018-06-21T19:21:02Z")

</div>

/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:385] elasticsearch - retrying failed action with response code: 403 ({"type"=\>"cluster\_block\_exception", "reason"=\>"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"})

getting the following error I have around 10000 log files spanned across multiple indices every five minutes the size of the file varies from 15 KB to 20 MB

when i each index by itself there is no issue but there is issue when running them together

I have a single node with 64GB ram and 2 TB hardisk to handle it

the below is the logstash.conf  
pasting logstash.conf in separate post

Logstash is crashing with tmoes index and works fine with out it

I have around 130 csv files each of size of around 20 MB every five minutes

any suggestions would be of great help

---

<div class="post-metadata">

**Author:** ![sandeepnarla22322](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@sandeepnarla22322](https://discuss.elastic.co/u/sandeepnarla22322)\
**Post date:** [June 21, 2018, 7:24pm UTC](https://discuss.elastic.co/t/logstash-is-failing/136933/2 "2018-06-21T19:24:23Z")

</div>

input {  
file {  
path =\>"/home/shared/msdp/LogStashOutputFormatted/SES\_VG1/_.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
type =\> "sesvg1"  
}  
file {  
path =\>"/home/shared/msdp/LogStashOutputFormatted/SES\_VG1\_Disk/_.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
type =\> "sesvg1disk"  
}  
file {  
path =\>"/home/shared/msdp/LogStashOutputFormatted/SES\_VG2/_.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
type =\> "sesvg2"  
}  
file {  
path =\>"/home/shared/msdp/LogStashOutputFormatted/SPP\_VG1/_.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
type =\> "sppvg1"  
}  
file {  
path =\>"/home/shared/msdp/LogStashOutputFormatted/SPP\_VG1\_Disk/_.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
type =\> "sppvg1disk"  
}  
file {  
path =\>"/home/shared/msdp/LogStashOutputFormatted/SPP\_VG2/_.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
type =\> "sppvg2"  
}

---

<div class="post-metadata">

**Author:** ![sandeepnarla22322](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@sandeepnarla22322](https://discuss.elastic.co/u/sandeepnarla22322)\
**Post date:** [June 21, 2018, 7:26pm UTC](https://discuss.elastic.co/t/logstash-is-failing/136933/3 "2018-06-21T19:26:55Z")

</div>

else if [type] == "sems" {  
csv {  
separator =\> ","  
columns =\> ["LogType","RootLogId","SubLogId","transactionID","Instance","Operation","Status","User","Hostname","Protocol","Target","startTime","ExecuteTime","responseCode"]  
}  
dissect {  
mapping =\> {  
"ExecuteTime" =\> "%{day} %{hour}:%{minute}:%{second}.%{millisecond}"  
}  
}  
if [hour] and [minute] and [second] and [millisecond] {  
ruby {  
code =\> "event.set( 'timeInSeconds', event.get('hour').to\_i_3600 + event.get('minute').to\_i_60 +  
event.get('second').to\_i + event.get('millisecond').to\_f/1000)"  
}  
}  
}  
else if [type]== "semn" {  
csv {  
separator =\> ","  
columns =\> ["LogType","RootLogId","SubLogId","transactionID","Instance","Operation","Status","User","Hostname","Protocol","Target","startTime","ExecuteTime","responseCode"]  
}  
dissect {  
mapping =\> {  
"ExecuteTime" =\> "%{day1} %{hour1}:%{minute1}:%{second1}.%{millisecond1}"  
}  
}  
if [hour1] and [minute1] and [second1] and [millisecond1] {  
ruby {  
code =\> "event.set( 'timeInSeconds1', event.get('hour1').to\_i_3600 + event.get('minute1').to\_i_60 +  
event.get('second1').to\_i + event.get('millisecond1').to\_f/1000)"  
}  
}  
}  
else if [type] == "tmoes" {  
csv {  
separator =\> ","  
columns =\> ["timeStamp","nodeIP","transactionId","APIName","APICall","startTime","endTime","transTime","responseMsg","responseCode","errMsg1","errMsg2","imsi"]  
}  
dissect {  
mapping =\> {

```
          "path" => "/%{folder1}/%{folder2}/%{folder3}/%{folder4}/%{folder5}/%{TmoesNodename}.%{LogName}"
         }
 } 

```

grok { match =\> ["TmoesNodename", "^(?...)"] }  
}  
else {  
csv {  
separator =\> ","  
columns =\> ["site","nodeName","APIName","Status","Share","Total"]  
}  
}  
mutate {  
convert =\> { "Filesystem" =\> "string" }  
convert =\> { "site" =\> "string" }  
convert =\> { "Size" =\> "string" }  
convert =\> { "Used" =\> "string" }  
convert =\> { "Avail" =\> "string" }  
convert =\> { "Utilization" =\> "integer" }  
convert =\> { "MountedOn" =\> "string" }  
convert =\> { "nodeName" =\> "string" }  
convert =\> { "APIName" =\> "string" }  
convert =\> { "Status" =\> "string" }  
convert =\> { "Value" =\> "string" }  
convert =\> { "Share" =\> "float" }  
convert =\> { "Total" =\> "integer" }  
convert =\> { "timeStamp" =\> "string" }  
convert =\> { "nodeIP" =\> "string" }  
convert =\> { "transactionID" =\> "string" }  
convert =\> { "APICall" =\> "string" }  
convert =\> { "startTime" =\> "string" }  
convert =\> { "endTime" =\> "string" }  
convert =\> { "transTime" =\> "string" }  
convert =\> { "responseMsg" =\> "string" }  
convert =\> { "responseCode" =\> "string" }  
convert =\> { "errMsg1" =\> "string" }  
convert =\> { "errMsg2" =\> "string" }  
convert =\> { "imsi" =\> "string" }  
convert =\> { "message1" =\> "string" }  
convert =\> { "msisdn" =\> "string" }  
convert =\> { "message2" =\> "string" }  
convert =\> { "transid" =\> "string" }  
convert =\> { "customer\_id" =\> "string" }  
convert =\> { "event" =\> "string" }  
convert =\> { "service" =\> "string" }  
convert =\> { "message3" =\> "string" }  
convert =\> { "streetaddress1" =\> "string" }  
convert =\> { "streetaddress2" =\> "string" }  
convert =\> { "city" =\> "string" }  
convert =\> { "state" =\> "string" }  
convert =\> { "zipcode" =\> "string" }  
convert =\> { "latitude" =\> "string" }  
convert =\> { "longitude" =\> "string" }  
convert =\> { "status1" =\> "string" }  
convert =\> { "latencyTime" =\> "string" }  
convert =\> { "transid1" =\> "string" }  
convert =\> { "event1" =\> "string" }  
convert =\> { "imsi1" =\> "string" }  
convert =\> { "msisdn1" =\> "string" }  
convert =\> { "LogType" =\> "string" }  
convert =\> { "RootLogId" =\> "string" }  
convert =\> { "SubLogId" =\> "string" }  
convert =\> { "Instance" =\> "string" }  
convert =\> { "Operation" =\> "string" }  
convert =\> { "User" =\> "string" }  
convert =\> { "Hostname" =\> "string" }  
convert =\> { "Protocol" =\> "string" }  
convert =\> { "Target" =\> "string" }  
convert =\> { "ExecuteTime" =\> "string" }  
convert =\> { "Date" =\> "string" }  
convert =\> { "TransactionType" =\> "string" }  
convert =\> { "Address" =\> "string" }  
convert =\> { "EndPointName" =\> "string" }  
convert =\> { "FailureStatusCode" =\> "string" }  
convert =\> { "TransactionDuration" =\> "string" }  
convert =\> { "x-device-auth-mode" =\> "string" }  
convert =\> { "x-user-auth-mode" =\> "string" }  
convert =\> { "x-device-type" =\> "string" }  
convert =\> { "x-nsds-version" =\> "string" }  
convert =\> { "conditiontype" =\> "string" }  
convert =\> { "reason" =\> "string" }  
}  
}

output {  
if [type] == "sesvg1" {  
elasticsearch {  
action =\> "index"  
hosts =\> "[http://localhost:9200](http://localhost:9200)"  
index =\> "sesvg1"  
}  
}  
else if [type] == "sesvg1disk" {  
elasticsearch {  
action =\> "index"  
hosts =\> "[http://localhost:9200](http://localhost:9200)"  
index =\> "sesvg1disk"  
}  
}  
else if [type] == "sppvg1" {  
elasticsearch {  
action =\> "index"  
hosts =\> "[http://localhost:9200](http://localhost:9200)"  
index =\> "sppvg1"  
}  
}  
else if [type] == "sppvg1disk" {  
elasticsearch {  
action =\> "index"  
hosts =\> "[http://localhost:9200](http://localhost:9200)"  
index =\> "sppvg1disk"  
}  
}  
else if [type] == "sppvg2" {  
elasticsearch {  
action =\> "index"  
hosts =\> "[http://localhost:9200](http://localhost:9200)"  
index =\> "sppvg2"  
}  
}

---

<div class="post-metadata">

**Author:** ![sandeepnarla22322](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@sandeepnarla22322](https://discuss.elastic.co/u/sandeepnarla22322)\
**Post date:** [June 21, 2018, 7:27pm UTC](https://discuss.elastic.co/t/logstash-is-failing/136933/4 "2018-06-21T19:27:19Z")

</div>

else if [type] == "sems" {  
elasticsearch {  
action =\> "index"  
hosts =\> "[http://localhost:9200](http://localhost:9200)"  
index =\> "sems"  
}  
}  
else if [type] == "semn"{  
elasticsearch {  
action =\> "index"  
hosts =\> "[http://localhost:9200](http://localhost:9200)"  
index =\> "semn"  
}  
}  
else if [type] == "semdiskstats" {  
elasticsearch {  
action =\> "index"  
hosts =\> "[http://localhost:9200](http://localhost:9200)"  
index =\> "semdiskstats"  
}  
}  
else if [type] == "tmoes" {  
elasticsearch {  
action =\> "index"  
hosts =\> "[http://localhost:9200](http://localhost:9200)"  
index =\> "tmoes"  
}  
}  
else {  
elasticsearch {  
action =\> "index"  
hosts =\> "[http://localhost:9200](http://localhost:9200)"  
index =\> "sesvg2"  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 21, 2018, 7:27pm UTC](https://discuss.elastic.co/t/logstash-is-failing/136933/5 "2018-06-21T19:27:53Z")

</div>

Sounds like you are running out of disk space. Are you above the [thresholds](https://www.elastic.co/guide/en/elasticsearch/reference/current/disk-allocator.html)?

---

<div class="post-metadata">

**Author:** ![sandeepnarla22322](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@sandeepnarla22322](https://discuss.elastic.co/u/sandeepnarla22322)\
**Post date:** [June 21, 2018, 7:28pm UTC](https://discuss.elastic.co/t/logstash-is-failing/136933/6 "2018-06-21T19:28:40Z")

</div>

No Badger

---

<div class="post-metadata">

**Author:** ![sandeepnarla22322](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@sandeepnarla22322](https://discuss.elastic.co/u/sandeepnarla22322)\
**Post date:** [June 21, 2018, 7:36pm UTC](https://discuss.elastic.co/t/logstash-is-failing/136933/7 "2018-06-21T19:36:53Z")

</div>

Thresholds are perfect and no issues I don't have a cluster that's all

---

<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:** [June 21, 2018, 8:17pm UTC](https://discuss.elastic.co/t/logstash-is-failing/136933/8 "2018-06-21T20:17:53Z")

</div>

The Elasticsearch logs should clue you in on the reason for the index being read-only.

---

<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 19, 2018, 8:17pm UTC](https://discuss.elastic.co/t/logstash-is-failing/136933/9 "2018-07-19T20:17:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
