# \[logstash.pipeline\] Error registering plugin

**URL:** <https://discuss.elastic.co/t/logstash-pipeline-error-registering-plugin/91674>\
**Category:** Logstash\
**Created:** [July 3, 2017, 4:28pm UTC](https://discuss.elastic.co/t/logstash-pipeline-error-registering-plugin/91674 "2017-07-03T16:28:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nir](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@nir](https://discuss.elastic.co/u/nir)\
**Post date:** [July 3, 2017, 4:28pm UTC](https://discuss.elastic.co/t/logstash-pipeline-error-registering-plugin/91674/1 "2017-07-03T16:28:06Z")

</div>

Installed logstash 5.4.3 and elasticsearch 5.4.3 on Centos 7.3.1611  
The configuration file in /etc/logstash/conf.d has the following lines  
input {  
tcp {  
port =\> 5000  
type =\> syslog  
}  
udp {  
port =\> 5000  
type =\> syslog  
}  
}

filter {  
if [type] == "syslog" {  
grok {  
match =\> { "message" =\> "%{SYSLOGTIMESTAMP:syslog\_timestamp} %{SYSLOGHOST:syslog\_hostname} %{DATA:syslog\_program}(?:[%{POSINT:syslog\_pid}])?: %{GREEDYDATA:syslog\_message}" }  
add\_field =\> ["received\_at", "%{@timestamp}"]  
add\_field =\> ["received\_from", "%{host}"]  
}  
date {  
match =\> ["syslog\_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss"]  
}  
}  
}

output {  
elasticsearch {  
hosts =\> ["10.100.10.151:9200"]  
user =\> "logstash\_internal"  
password =\> ""  
}  
stdout { codec =\> rubydebug }  
}

When the elasticsearch start the following error shows in the error log

Error registering plugin  
@output\_class=LogStash::Outputs::ElasticSearch\>", :error=\>"undefined method `tr' for nil:NilClass"}

The error will stop the pipeline.

Please help  
Robert

---

<div class="post-metadata">

**Author:** ![jsvd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsvd/32/6203_2.png) [@jsvd](https://discuss.elastic.co/u/jsvd)\
**Post date:** [July 3, 2017, 6:05pm UTC](https://discuss.elastic.co/t/logstash-pipeline-error-registering-plugin/91674/2 "2017-07-03T18:05:11Z")

</div>

there seems to be a bug when using empty passwords. I created an issue [https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/614](https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/614)

---

<div class="post-metadata">

**Author:** ![nir](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@nir](https://discuss.elastic.co/u/nir)\
**Post date:** [July 3, 2017, 7:13pm UTC](https://discuss.elastic.co/t/logstash-pipeline-error-registering-plugin/91674/3 "2017-07-03T19:13:04Z")

</div>

Many Thanks jsvd!  
Is there any workaround in the mean time?

---

<div class="post-metadata">

**Author:** ![jsvd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsvd/32/6203_2.png) [@jsvd](https://discuss.elastic.co/u/jsvd)\
**Post date:** [July 4, 2017, 1:37pm UTC](https://discuss.elastic.co/t/logstash-pipeline-error-registering-plugin/91674/4 "2017-07-04T13:37:35Z")

</div>

not using an empty password 🙂

I created a PR that attempts to fix this [https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/615](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/615), please track its progress there

---

<div class="post-metadata">

**Author:** ![nir](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@nir](https://discuss.elastic.co/u/nir)\
**Post date:** [July 5, 2017, 12:09pm UTC](https://discuss.elastic.co/t/logstash-pipeline-error-registering-plugin/91674/5 "2017-07-05T12:09:53Z")

</div>

Thanks!

---

<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:** [August 2, 2017, 12:10pm UTC](https://discuss.elastic.co/t/logstash-pipeline-error-registering-plugin/91674/6 "2017-08-02T12:10:00Z")

</div>

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