# Logstash Conf Error For Tweet

**URL:** <https://discuss.elastic.co/t/logstash-conf-error-for-tweet/49086>\
**Category:** Logstash\
**Created:** [May 3, 2016, 4:56pm UTC](https://discuss.elastic.co/t/logstash-conf-error-for-tweet/49086 "2016-05-03T16:56:23Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![teatone](https://avatars.discourse-cdn.com/v4/letter/t/d9b06d/32.png) [@teatone](https://discuss.elastic.co/u/teatone)\
**Post date:** [May 4, 2016, 7:36am UTC](https://discuss.elastic.co/t/logstash-conf-error-for-tweet/49086/21 "2016-05-04T07:36:44Z")

</div>

I fixed ES. But output config test results are here.

`root@client:~# /opt/logstash/bin/logstash --configtest -f /etc/logstash/conf.d/30-elasticsearch-output.conf`

> Invalid setting for elasticsearch output plugin:  
> output {  
> elasticsearch {  
> # This setting must be a path  
> # File does not exist or cannot be opened twitter\_template.json  
> template =\> "twitter\_template.json"  
> ...  
> }  
> } {:level=\>:error}  
> Error: Something is wrong with your configuration.

How can i implement twitter\_template.json to output conf

---

<div class="post-metadata">

**Author:** ![teatone](https://avatars.discourse-cdn.com/v4/letter/t/d9b06d/32.png) [@teatone](https://discuss.elastic.co/u/teatone)\
**Post date:** [May 7, 2016, 2:13pm UTC](https://discuss.elastic.co/t/logstash-conf-error-for-tweet/49086/22 "2016-05-07T14:13:36Z")

</div>

I need help

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 7, 2016, 8:11pm UTC](https://discuss.elastic.co/t/logstash-conf-error-for-tweet/49086/23 "2016-05-07T20:11:24Z")

</div>

You need to provide the full path the the template file.

---

<div class="post-metadata">

**Author:** ![teatone](https://avatars.discourse-cdn.com/v4/letter/t/d9b06d/32.png) [@teatone](https://discuss.elastic.co/u/teatone)\
**Post date:** [May 8, 2016, 10:47am UTC](https://discuss.elastic.co/t/logstash-conf-error-for-tweet/49086/24 "2016-05-08T10:47:31Z")

</div>

I did what you said. Error fixed but it still say `Configuration error. Not restarting. Re-run with configtest parameter for details` . I did detail configtest but all files just `OK` . Where do i have to look to fix it.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 8, 2016, 10:47am UTC](https://discuss.elastic.co/t/logstash-conf-error-for-tweet/49086/25 "2016-05-08T10:47:56Z")

</div>

Can you provide the fill error you are seeing then?

---

<div class="post-metadata">

**Author:** ![teatone](https://avatars.discourse-cdn.com/v4/letter/t/d9b06d/32.png) [@teatone](https://discuss.elastic.co/u/teatone)\
**Post date:** [May 8, 2016, 10:55am UTC](https://discuss.elastic.co/t/logstash-conf-error-for-tweet/49086/26 "2016-05-08T10:55:19Z")

</div>

`root@client:~# /opt/logstash/bin/logstash --configtest -f /etc/logstash/conf.d/3 0-elasticsearch-output.conf Configuration OK root@client:~# /opt/logstash/bin/logstash --configtest -f /etc/logstash/conf.d/0 2-beats-input.conf Configuration OK root@client:~# /opt/logstash/bin/logstash --configtest -f /etc/logstash/conf.d/1 1-nginx.conf Configuration OK root@client:~# /opt/logstash/bin/logstash --configtest -f /etc/logstash/conf.d/1 0-syslog.conf Configuration OK root@client:~# sudo service logstash configtest Error: Expected one of #, input, filter, output at line 50, column 1 (byte 1338) after`

`and this is my output output { stdout { codec => dots } elasticsearch { hosts => ["localhost:9200"] index => "twitter" document_type => "tweet" template_name => "twitter" template => "/etc/logstash/conf.d/twitter_template.json" } }`

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 8, 2016, 10:57am UTC](https://discuss.elastic.co/t/logstash-conf-error-for-tweet/49086/27 "2016-05-08T10:57:54Z")

</div>

Please don't post pictures of text, they are difficult to read and some people may not be even able to see them.

---

<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:** [May 9, 2016, 6:21am UTC](https://discuss.elastic.co/t/logstash-conf-error-for-tweet/49086/28 "2016-05-09T06:21:44Z")

</div>

What other files do you have in /etc/logstash/conf.d? What if you run `/opt/logstash/bin/logstash --configtest -f /etc/logstash/conf.d`?

---

<div class="post-metadata">

**Author:** ![teatone](https://avatars.discourse-cdn.com/v4/letter/t/d9b06d/32.png) [@teatone](https://discuss.elastic.co/u/teatone)\
**Post date:** [May 9, 2016, 10:05am UTC](https://discuss.elastic.co/t/logstash-conf-error-for-tweet/49086/29 "2016-05-09T10:05:21Z")

</div>

> [@magnusbaeck](#):
>
> /opt/logstash/bin/logstash --configtest -f /etc/logstash/conf.d

`Error: Expected one of #, input, filter, output at line 50, column 1 (byte 133 after`

there are 4 configuration file and just twitter\_template.json. Configuration files are output , input, syslog, nginx.

I took a picture one of my old posts about documents.

---

<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:** [May 9, 2016, 10:35am UTC](https://discuss.elastic.co/t/logstash-conf-error-for-tweet/49086/30 "2016-05-09T10:35:10Z")

</div>

Oh, you have twitter\_template.json in /etc/logstash/conf.d. That won't do. That directory can only contain the Logstash configuration files you want to use.

---

<div class="post-metadata">

**Author:** ![teatone](https://avatars.discourse-cdn.com/v4/letter/t/d9b06d/32.png) [@teatone](https://discuss.elastic.co/u/teatone)\
**Post date:** [May 9, 2016, 11:23am UTC](https://discuss.elastic.co/t/logstash-conf-error-for-tweet/49086/31 "2016-05-09T11:23:22Z")

</div>

thank you that help a lot. now i can't get any result but errors are gone. thank you again. warkolm you too.

---

<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, 4:58am UTC](https://discuss.elastic.co/t/logstash-conf-error-for-tweet/49086/32 "2017-07-06T04:58:34Z")

</div>

Closed on July 6, 2017, 4:58am UTC



[Previous page](https://discuss.elastic.co/t/logstash-conf-error-for-tweet/49086.md?page=1)
