# Logstash 1.5.3 issue with elasticsearch 1.6.1/1.7.0 "undefined method"

**URL:** https://discuss.elastic.co/t/logstash-1-5-3-issue-with-elasticsearch-1-6-1-1-7-0-undefined-method/26566
**Category:** Logstash
**Created:** [July 30, 2015, 12:11pm UTC](https://discuss.elastic.co/t/logstash-1-5-3-issue-with-elasticsearch-1-6-1-1-7-0-undefined-method/26566 "2015-07-30T12:11:31Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![m1k3ga](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m1k3ga/32/4173_2.png) [@m1k3ga](https://discuss.elastic.co/u/m1k3ga)
#### Post date: [July 30, 2015, 12:11pm UTC](https://discuss.elastic.co/t/logstash-1-5-3-issue-with-elasticsearch-1-6-1-1-7-0-undefined-method/26566/1 "2015-07-30T12:11:31Z")

</div>

hi there,

yesterday we tried to update our production system.  
we have N logstash instances (as shipper) to a few redis instances.  
Then there are a few logstash indexer pulling from redis and putting them into the elasticsearch cluster.

with logstash 1.5.1 and elasticsearch 1.6.1 all was fines for weeks.  
Now, with logstash 1.5.3 (JDK 7 and 8) we run into the problem that logstash is dying with notification like

"undefined method `close' for nil:NilClass".

Since i am no ruby expert, can anybody be of assistance what went wrong and how to fix this ?

Elasticsearch runs but does not receive events from logstash since logstash dies after nearly 30 sec.

thnx.  
mike

---

<div class="post-metadata">

### Author: ![Joe\_Lawson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_lawson/32/3390_2.png) [@Joe\_Lawson](https://discuss.elastic.co/u/Joe_Lawson)
#### Post date: [July 30, 2015, 1:14pm UTC](https://discuss.elastic.co/t/logstash-1-5-3-issue-with-elasticsearch-1-6-1-1-7-0-undefined-method/26566/2 "2015-07-30T13:14:14Z")

</div>

An undefined on a nil class sounds like a missing plugin. Make sure with the bin/plugins script that everything you expect is there

---

<div class="post-metadata">

### Author: ![m1k3ga](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m1k3ga/32/4173_2.png) [@m1k3ga](https://discuss.elastic.co/u/m1k3ga)
#### Post date: [August 5, 2015, 12:25pm UTC](https://discuss.elastic.co/t/logstash-1-5-3-issue-with-elasticsearch-1-6-1-1-7-0-undefined-method/26566/3 "2015-08-05T12:25:29Z")

</div>

Continuing the discussion from [Logstash 1.5.3 issue with elasticsearch 1.6.1/1.7.0 "undefined method"](https://discuss.elastic.co/t/logstash-1-5-3-issue-with-elasticsearch-1-6-1-1-7-0-undefined-method/26566/2):

> [@Joe\_Lawson](#):
>
> An undefined on a nil class sounds like a missing plugin. Make sure with the bin/plugins script that everything you expect is there

I checked our plugins, they were ok so far i could see.

Meanwhile we found the error causing this:  
In the configuration folder, where logstash looks for configuration files never ever has to be a folder!.  
If, say /tmp/conf is your config folder, then in this folder only files should be located.  
Otherwise logstash dies with NO error output useful to find this bug.

Is it worth an issue on github? or who can check this?

best regards,  
mike

---

<div class="post-metadata">

### Author: ![DavidL](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@DavidL](https://discuss.elastic.co/u/DavidL)
#### Post date: [August 10, 2015, 3:37pm UTC](https://discuss.elastic.co/t/logstash-1-5-3-issue-with-elasticsearch-1-6-1-1-7-0-undefined-method/26566/4 "2015-08-10T15:37:45Z")

</div>

Hello Mike, I have the same problem, could you talk a little more about what you mean by, "configuration files never ever has to be a folder"?

---

<div class="post-metadata">

### Author: ![m1k3ga](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m1k3ga/32/4173_2.png) [@m1k3ga](https://discuss.elastic.co/u/m1k3ga)
#### Post date: [August 12, 2015, 2:41pm UTC](https://discuss.elastic.co/t/logstash-1-5-3-issue-with-elasticsearch-1-6-1-1-7-0-undefined-method/26566/5 "2015-08-12T14:41:40Z")

</div>

Hi David,

you call your logstash with "-f \<path\_to\_config\_file\_or\_folder\>".  
In our case the path was a folder like e.g. "logstash -f /tmp/ls\_configs" where our logstash configuration resides.  
The problem then was that inside the folder "/tmp/ls\_configs" there was another folder e.g. "/tmp/ls\_configs/foo/".  
This caused the problem since logstash couldn't handle subfolders in the config path.  
After we removed the "foo" folder from the config folder the problem was gone.

Hope i could help,  
best regards,  
mike

---

<div class="post-metadata">

### Author: ![DavidL](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@DavidL](https://discuss.elastic.co/u/DavidL)
#### Post date: [August 12, 2015, 3:14pm UTC](https://discuss.elastic.co/t/logstash-1-5-3-issue-with-elasticsearch-1-6-1-1-7-0-undefined-method/26566/6 "2015-08-12T15:14:50Z")

</div>

Thanks Mike!

---

<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:32am UTC](https://discuss.elastic.co/t/logstash-1-5-3-issue-with-elasticsearch-1-6-1-1-7-0-undefined-method/26566/7 "2017-07-06T05:32:09Z")

</div>


