# LogStash::ConfigurationError", :message=\>"Expected one of #, input, filter, output at line 1, column 1 (byte 1)

**URL:** <https://discuss.elastic.co/t/logstash-configurationerror-message-expected-one-of-input-filter-output-at-line-1-column-1-byte-1/197447>\
**Category:** Logstash\
**Created:** [August 30, 2019, 6:14am UTC](https://discuss.elastic.co/t/logstash-configurationerror-message-expected-one-of-input-filter-output-at-line-1-column-1-byte-1/197447 "2019-08-30T06:14:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shan\_usa](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@shan\_usa](https://discuss.elastic.co/u/shan_usa)\
**Post date:** [August 30, 2019, 6:14am UTC](https://discuss.elastic.co/t/logstash-configurationerror-message-expected-one-of-input-filter-output-at-line-1-column-1-byte-1/197447/1 "2019-08-30T06:14:19Z")

</div>

Hi ,

I am trying pull data from oracle table to elastic search but i am getting below error,  
Any one please tell me how to fix this issue.

conf file :

input {  
jdbc {  
jdbc\_driver\_library =\> "C:\Product\SabaWeb\lib\ojdbc6.jar"  
jdbc\_driver\_class =\> "oracle.jdbc.driver.OracleDriver"  
jdbc\_connection\_string =\> "jdbc:oracle:thin:@[//localhost:1521/orcl](https://localhost:1521/orcl)"  
jdbc\_user =\> "tp2\_cls"  
jdbc\_password =\> "tp2cls"  
statement =\> "select \* from test"

}  
}

output {  
elasticsearch {  
hosts =\> ["[http://localhost:9200](http://localhost:9200)"]  
index =\> "test"  
document\_type =\> "\_doc"  
documnet\_id =\> "%{id}"  
}  
stdout{  
codec =\> rubydebug  
}  
}

Error :

[2019-08-30T11:36:55,871][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2019-08-30T11:36:55,928][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"7.2.0"}  
[2019-08-30T11:36:57,699][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)", :backtrace=\>["C:/Users/shswamin/Downloads/logstash-7.2.0/logstash-core/lib/logstash/compiler.rb:41:in `compile_imperative'", "C:/Users/shswamin/Downloads/logstash-7.2.0/logstash-core/lib/logstash/compiler.rb:49:in`compile\_graph'", "C:/Users/shswamin/Downloads/logstash-7.2.0/logstash-core/lib/logstash/compiler.rb:11:in `block in compile_sources'", "org/jruby/RubyArray.java:2577:in`map'", "C:/Users/shswamin/Downloads/logstash-7.2.0/logstash-core/lib/logstash/compiler.rb:10:in `compile_sources'", "org/logstash/execution/AbstractPipelineExt.java:151:in`initialize'", "org/logstash/execution/JavaBasePipelineExt.java:47:in `initialize'", "C:/Users/shswamin/Downloads/logstash-7.2.0/logstash-core/lib/logstash/java_pipeline.rb:24:in`initialize'", "C:/Users/shswamin/Downloads/logstash-7.2.0/logstash-core/lib/logstash/pipeline\_action/create.rb:36:in `execute'", "C:/Users/shswamin/Downloads/logstash-7.2.0/logstash-core/lib/logstash/agent.rb:325:in`block in converge\_state'"]}  
[2019-08-30T11:36:58,419][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}  
[2019-08-30T11:37:02,971][INFO][logstash.runner] Logstash shut down.

---

<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:** [August 30, 2019, 1:22pm UTC](https://discuss.elastic.co/t/logstash-configurationerror-message-expected-one-of-input-filter-output-at-line-1-column-1-byte-1/197447/2 "2019-08-30T13:22:25Z")

</div>

Is path.config (or -f) pointing to a directory? If so, logstash will read every file in the directory and treat it as part of the configuration.

---

<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:** [September 27, 2019, 1:22pm UTC](https://discuss.elastic.co/t/logstash-configurationerror-message-expected-one-of-input-filter-output-at-line-1-column-1-byte-1/197447/3 "2019-09-27T13:22:26Z")

</div>

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