# Error in logstash config file after adding gelf

**URL:** https://discuss.elastic.co/t/error-in-logstash-config-file-after-adding-gelf/41566
**Category:** Logstash
**Created:** [February 11, 2016, 11:50pm UTC](https://discuss.elastic.co/t/error-in-logstash-config-file-after-adding-gelf/41566 "2016-02-11T23:50:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![JoeKing](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@JoeKing](https://discuss.elastic.co/u/JoeKing)
#### Post date: [February 11, 2016, 11:50pm UTC](https://discuss.elastic.co/t/error-in-logstash-config-file-after-adding-gelf/41566/1 "2016-02-11T23:50:52Z")

</div>

I receive the following error after adding gelf in logstash config file. The gelf output plugin is listed as one of my plugins.

Error: Expected one of #, input, filter, output at line 9, column 1 (byte 125)

input {  
file {  
type =\> "apache"  
path =\> "var/log/logstash/access\_log"  
start\_position =\> "beginning"  
}  
}  
gelf {  
host =\> "99.99.99.99"  
}

---

<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: [February 12, 2016, 8:29am UTC](https://discuss.elastic.co/t/error-in-logstash-config-file-after-adding-gelf/41566/2 "2016-02-12T08:29:52Z")

</div>

As it says, line 9 is an issue, it should look like;

```auto
input {
file {
type => "apache"
path => "var/log/logstash/access_log"
start_position => "beginning"
}
gelf {
host => "10.6.1.51"
}
}

```

---

<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:11am UTC](https://discuss.elastic.co/t/error-in-logstash-config-file-after-adding-gelf/41566/3 "2017-07-06T05:11:51Z")

</div>


