# Logstash Error with configuration

**URL:** <https://discuss.elastic.co/t/logstash-error-with-configuration/228756>\
**Category:** Logstash\
**Created:** [April 19, 2020, 7:08pm UTC](https://discuss.elastic.co/t/logstash-error-with-configuration/228756 "2020-04-19T19:08:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom\_marshall](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tom_marshall/32/46431_2.png) [@tom\_marshall](https://discuss.elastic.co/u/tom_marshall)\
**Post date:** [April 19, 2020, 7:08pm UTC](https://discuss.elastic.co/t/logstash-error-with-configuration/228756/1 "2020-04-19T19:08:27Z")

</div>

Hi,

Can anyone please help with this issue, I am running logstack. I made lesson on Udemy course ([https://www.udemy.com/course/elasticsearch-7-and-elastic-stack/learn/lecture/14729000#announcements](https://www.udemy.com/course/elasticsearch-7-and-elastic-stack/learn/lecture/14729000#announcements))

data: **wget [http://media.sundog-soft.com/es/access\_log](http://media.sundog-soft.com/es/access_log)**

**there is my logstash.conf file:**

```auto
        input {
                file {
                path => "/home/student/access_log“
                start_position => "beginning"
                }
        }

        filter {
                grok {
                match => { "message" => "%{COMBINEDAPACHELOG}" }
                }
                date {
                match => ["timestamp", "dd/MMM/yyyy:HH:mm:ss Z"]
                }
        }
        output {
                elasticsearch {
                        hosts => ["localhost:9200"]
                }
                stdout {
                codec => rubydebug
                }
        }

```

**And below is error respont**

sudo bin/logstash -f /etc/logstash/conf.d/logstash.conf

```auto
[ERROR] 2020-04-19 18:59:12.963 [Converge PipelineAction::Create<main>] agent - Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of [\\t\\r\\n], \"#\", \"{\", \"}\" at line 4, column 21 (byte 73) after input {\n\tfile {\n\tpath => \"/home/student/access_log“\n\tstart_position => \"", :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:41:in `compile_imperative'", "/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:49:in `compile_graph'", "/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:11:in `block in compile_sources'", "org/jruby/RubyArray.java:2580:in `map'", "/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:10:in `compile_sources'", "org/logstash/execution/AbstractPipelineExt.java:161:in `initialize'", "org/logstash/execution/JavaBasePipelineExt.java:47:in `initialize'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:27:in `initialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:36:in `execute'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:326:in `block in converge_state'"]}

```

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 19, 2020, 7:53pm UTC](https://discuss.elastic.co/t/logstash-error-with-configuration/228756/2 "2020-04-19T19:53:57Z")

</div>

> [@tom\_marshall](#):
>
> path =\> "/home/student/access\_log“

You cannot use curly quotes. Use regular double quotes. With curly quotes there you are setting the path to

```
"/home/student/access_log“
            start_position => "

```

That is why the error message complains about

```
after input {\n\tfile {\n\tpath => \"/home/student/access_log“\n\tstart_position => \"

```

It does not know how to parse the word beginning.

---

<div class="post-metadata">

**Author:** ![tom\_marshall](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tom_marshall/32/46431_2.png) [@tom\_marshall](https://discuss.elastic.co/u/tom_marshall)\
**Post date:** [April 19, 2020, 9:59pm UTC](https://discuss.elastic.co/t/logstash-error-with-configuration/228756/3 "2020-04-19T21:59:29Z")

</div>

It was really bad typo..

thank you so much

---

<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 17, 2020, 9:59pm UTC](https://discuss.elastic.co/t/logstash-error-with-configuration/228756/4 "2020-05-17T21:59:31Z")

</div>

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