# Logstash to EalsticSearch config error

**URL:** <https://discuss.elastic.co/t/logstash-to-ealsticsearch-config-error/89135>\
**Category:** Logstash\
**Created:** [June 13, 2017, 3:38am UTC](https://discuss.elastic.co/t/logstash-to-ealsticsearch-config-error/89135 "2017-06-13T03:38:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mvelez83](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@mvelez83](https://discuss.elastic.co/u/mvelez83)\
**Post date:** [June 13, 2017, 3:38am UTC](https://discuss.elastic.co/t/logstash-to-ealsticsearch-config-error/89135/1 "2017-06-13T03:38:48Z")

</div>

Hello,

I'm very new to ELK stack and I'm trying to connect Logstash to Elastic Search and I keep getting the following error:

> [2017-06-13T03:17:53,910][ERROR][logstash.agent] Cannot create pipeline {:reason=\>"Expected one of #, =\> at line 9, column 17 (byte 147) after input {\n redis {\n host =\> "172.16.17.20"\n data\_type =\> "list"\n key =\> "sensu1"\n password =\> "testme"\n }\noutput {\n elasticsearch ", :backtrace=\>["/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:50:in `initialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:145:in `initialize'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:286:in `create_pipeline'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:95:in `register\_pipeline'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:274:in `execute'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67:in `run'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:185:in `run'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132:in `run'", "/usr/share/logstash/lib/bootstrap/environment.rb:71:in `(root)'"]}

Here is the config in Logstash:

> input {  
> redis {  
> host =\> "172.16.17.20"  
> data\_type =\> "list"  
> key =\> "sensu1"  
> password =\> "testme"  
> }  
> output {  
> elasticsearch { hosts =\> ["10.34.192.61:9200"] }  
> }  
> }

Please let me know if there is anything else I can send to better assist in helping and thank you very much in advanced for any and all help!

Thank You

---

<div class="post-metadata">

**Author:** ![mulgar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mulgar/32/18862_2.png) [@mulgar](https://discuss.elastic.co/u/mulgar)\
**Post date:** [June 13, 2017, 4:25am UTC](https://discuss.elastic.co/t/logstash-to-ealsticsearch-config-error/89135/2 "2017-06-13T04:25:50Z")

</div>

Try closing the input with } before you do the output. I'm not familiar with the redis plugin but I think this could be your problem, so try the following and this should fix that parse error hopefully:

```
input {
	redis {
		host => "172.16.17.20"
		data_type => "list"
		key => "sensu1"
		password => "testme"
	}
}
output {
	elasticsearch { hosts => ["10.34.192.61:9200"] }
}
```

---

<div class="post-metadata">

**Author:** ![mvelez83](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@mvelez83](https://discuss.elastic.co/u/mvelez83)\
**Post date:** [June 13, 2017, 5:49am UTC](https://discuss.elastic.co/t/logstash-to-ealsticsearch-config-error/89135/3 "2017-06-13T05:49:01Z")

</div>

Hello,

That seem to have worked.

Thank you so much for your help!!

---

<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 11, 2017, 6:01am UTC](https://discuss.elastic.co/t/logstash-to-ealsticsearch-config-error/89135/4 "2017-07-11T06:01:14Z")

</div>

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