# Error while loading data via logstash

**URL:** <https://discuss.elastic.co/t/error-while-loading-data-via-logstash/167859>\
**Category:** Logstash\
**Created:** [February 11, 2019, 1:11pm UTC](https://discuss.elastic.co/t/error-while-loading-data-via-logstash/167859 "2019-02-11T13:11:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kushagra\_Makharia](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@Kushagra\_Makharia](https://discuss.elastic.co/u/Kushagra_Makharia)\
**Post date:** [February 11, 2019, 1:11pm UTC](https://discuss.elastic.co/t/error-while-loading-data-via-logstash/167859/1 "2019-02-11T13:11:32Z")

</div>

(base) apples-imac:logstash-6.6.0 apple$ bin/logstash -f /Users/apple/Downloads/logstash-6.6.0/data/app.config  
Sending Logstash logs to /Users/apple/Downloads/logstash-6.6.0/logs which is now configured via log4j2.properties  
[2019-02-11T18:38:56,894][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2019-02-11T18:38:56,910][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"6.6.0"}  
[2019-02-11T18:38:57,655][ERROR][logstash.agent] Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"LogStash::ConfigurationError", :message=\>"Expected one of #, input, filter, output at line 1, column 1 (byte 1) after ", :backtrace=\>["/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/compiler.rb:41:in `compile_imperative'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/compiler.rb:49:in`compile\_graph'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/compiler.rb:11:in `block in compile_sources'", "org/jruby/RubyArray.java:2486:in`map'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/compiler.rb:10:in `compile_sources'", "org/logstash/execution/AbstractPipelineExt.java:149:in`initialize'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:22:in `initialize'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:90:in`initialize'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/pipeline\_action/create.rb:42:in `block in execute'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/agent.rb:92:in`block in exclusive'", "org/jruby/ext/thread/Mutex.java:148:in `synchronize'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/agent.rb:92:in`exclusive'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/pipeline\_action/create.rb:38:in `execute'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/agent.rb:317:in`block in converge\_state'"]}  
[2019-02-11T18:38:57,946][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}

The above error is created when is use

filename= app.config  
terminal command: bin/logstash -f /Users/apple/Downloads/logstash-6.6.0/data/app.config

input {  
file {  
path =\> “/Users/apple/Downloads/logstash-6.6.0/data/App\_data.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
}  
}  
filter {  
csv {  
separator =\> ","  
columns =\> [“id”,”track\_name”,”size\_bytes”,”app\_desc”]  
}  
}  
output {  
elasticsearch {  
hosts =\> "[http://localhost:9200](http://localhost:9200)"  
index =\> “app-data”  
document\_type =\> “ios\_app”

}  
stdout {}  
}

Please help

---

<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:** [February 11, 2019, 1:29pm UTC](https://discuss.elastic.co/t/error-while-loading-data-via-logstash/167859/2 "2019-02-11T13:29:51Z")

</div>

You need to examine the first line of app.config. The first word should be either input, output, filter, or start with #, so that it is a comment. At present it is none of those.

---

<div class="post-metadata">

**Author:** ![Kushagra\_Makharia](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@Kushagra\_Makharia](https://discuss.elastic.co/u/Kushagra_Makharia)\
**Post date:** [February 11, 2019, 1:44pm UTC](https://discuss.elastic.co/t/error-while-loading-data-via-logstash/167859/3 "2019-02-11T13:44:44Z")

</div>

Earlier it was "input" as the first word, now I saved a comment as well, still showing the error

---

<div class="post-metadata">

**Author:** ![Kushagra\_Makharia](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@Kushagra\_Makharia](https://discuss.elastic.co/u/Kushagra_Makharia)\
**Post date:** [February 11, 2019, 1:48pm UTC](https://discuss.elastic.co/t/error-while-loading-data-via-logstash/167859/4 "2019-02-11T13:48:16Z")

</div>

My mistake. The error has changed a bit

(base) apples-imac:logstash-6.6.0 apple$ bin/logstash -f /Users/apple/Downloads/logstash-6.6.0/data/app.config  
Sending Logstash logs to /Users/apple/Downloads/logstash-6.6.0/logs which is now configured via log4j2.properties  
[2019-02-11T19:16:58,248][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2019-02-11T19:16:58,265][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"6.6.0"}  
[2019-02-11T19:16:59,150][ERROR][logstash.agent] Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"LogStash::ConfigurationError", :message=\>"Expected one of #, ", ', -, [, { at line 4, column 13 (byte 57) after #Configuration for IOS APP\ninput {\n file {\n path =\> ", :backtrace=\>["/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/compiler.rb:41:in `compile_imperative'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/compiler.rb:49:in`compile\_graph'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/compiler.rb:11:in `block in compile_sources'", "org/jruby/RubyArray.java:2486:in`map'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/compiler.rb:10:in `compile_sources'", "org/logstash/execution/AbstractPipelineExt.java:149:in`initialize'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:22:in `initialize'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:90:in`initialize'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/pipeline\_action/create.rb:42:in `block in execute'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/agent.rb:92:in`block in exclusive'", "org/jruby/ext/thread/Mutex.java:148:in `synchronize'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/agent.rb:92:in`exclusive'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/pipeline\_action/create.rb:38:in `execute'", "/Users/apple/Downloads/logstash-6.6.0/logstash-core/lib/logstash/agent.rb:317:in`block in converge\_state'"]}  
[2019-02-11T19:16:59,394][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}

---

<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:** [February 11, 2019, 1:50pm UTC](https://discuss.elastic.co/t/error-while-loading-data-via-logstash/167859/5 "2019-02-11T13:50:02Z")

</div>

Your path option appears to start with curly quotes. Change it to a normal double quote - ".

Same problem for csv/columns and for index and document\_type on the output.

---

<div class="post-metadata">

**Author:** ![Kushagra\_Makharia](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@Kushagra\_Makharia](https://discuss.elastic.co/u/Kushagra_Makharia)\
**Post date:** [February 11, 2019, 2:01pm UTC](https://discuss.elastic.co/t/error-while-loading-data-via-logstash/167859/6 "2019-02-11T14:01:04Z")

</div>

Hey! Thanks for all your help! The implementation was successful!

---

<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:** [March 11, 2019, 2:01pm UTC](https://discuss.elastic.co/t/error-while-loading-data-via-logstash/167859/7 "2019-03-11T14:01:12Z")

</div>

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