# What does Expected one of #, {, ,, \] mean?

**URL:** <https://discuss.elastic.co/t/what-does-expected-one-of-mean/127269>\
**Category:** Logstash\
**Created:** [April 9, 2018, 8:12am UTC](https://discuss.elastic.co/t/what-does-expected-one-of-mean/127269 "2018-04-09T08:12:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wuzu85](https://avatars.discourse-cdn.com/v4/letter/w/8e8cbc/32.png) [@Wuzu85](https://discuss.elastic.co/u/Wuzu85)\
**Post date:** [April 9, 2018, 8:12am UTC](https://discuss.elastic.co/t/what-does-expected-one-of-mean/127269/1 "2018-04-09T08:12:26Z")

</div>

Hi im new to logstash what does this error mean? (version 5.6.8)

Cannot create pipeline {:reason=\>"Expected one of #, {, ,, ] at line 33, column 26

input {  
file { path =\> ["/var/log/collectd.logstash.log"]  
start\_position =\> beginning  
sincedb\_path =\> ["/var/log/collectd/logstash.log"]  
}

```
    udp {
    port => 25828
    buffer_size => 1452
    codec => collectd{ typesdb => ["/usr/share/collectd/types.db"] }

```

}  
}

filter {

```
    if "_grokparsefailure" in [tags] {
    drop { }

     grok {
            match => { "message" => "%{NUMBER:duration}, %{NUMBER:value}, %{DATA:value}, %{WORD:host}, %{IP:client}"}

    add_field => ["received_at", "%{@timestamp}"]

```

# add\_field =\> ["cpu", "%{NUMBER:cpu}"]

# add\_field =\> ["received\_at", "%{@timestamp}"]

# add\_field =\> ["received\_from", "%{host}"]

# add\_field =\> ["value", "%{NUMBER:value} %{DATA:value}"]

```
    add_field => ["test", "%{WORD:test}]

```

}  
}

output {  
file { path =\> ["/var/log/logstash/logstash2.log"] }  
elasticsearch { hosts =\> ["localhost:9200"] }

```
  influxdb {
            use_event_fields_for_data_points => true
            data_points => {}
            host => localhost
            db => collectd
            coerce_values => {"value" => "float"}

```

}

stdout {  
codec =\> rubydebug }

Thnx in advance  
Owusu  
}

---

<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:** [April 9, 2018, 10:25am UTC](https://discuss.elastic.co/t/what-does-expected-one-of-mean/127269/2 "2018-04-09T10:25:05Z")

</div>

The error message means that the Logstash configuration file parser found something unexpected at or near line 33. I'm guessing the problem is that missing quote near the end of this line:

```
add_field => ["test", "%{WORD:test}]
```

---

<div class="post-metadata">

**Author:** ![Wuzu85](https://avatars.discourse-cdn.com/v4/letter/w/8e8cbc/32.png) [@Wuzu85](https://discuss.elastic.co/u/Wuzu85)\
**Post date:** [April 10, 2018, 7:45am UTC](https://discuss.elastic.co/t/what-does-expected-one-of-mean/127269/3 "2018-04-10T07:45:44Z")

</div>

Thank you for the response, indeed it was the quotes.  
I have another question but will open a new post for that.

Again thank you

Owusu

---

<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:** [May 8, 2018, 7:45am UTC](https://discuss.elastic.co/t/what-does-expected-one-of-mean/127269/4 "2018-05-08T07:45:44Z")

</div>

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