# Logstash is not working

**URL:** <https://discuss.elastic.co/t/logstash-is-not-working/182378>\
**Category:** Logstash\
**Created:** [May 23, 2019, 8:49am UTC](https://discuss.elastic.co/t/logstash-is-not-working/182378 "2019-05-23T08:49:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmohd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmohd/32/49090_2.png) [@kmohd](https://discuss.elastic.co/u/kmohd)\
**Post date:** [May 23, 2019, 8:49am UTC](https://discuss.elastic.co/t/logstash-is-not-working/182378/1 "2019-05-23T08:49:22Z")

</div>

Logstash has an issue as per the below, i hope anyone have an idea how to solve it.

C:\Users\Administrator\Desktop\logstash-7.1.0\logstash-7.1.0\bin\>logstash -f logstash.conf  
Sending Logstash logs to C:/Users/Administrator/Desktop/logstash-7.1.0/logstash-  
7.1.0/logs which is now configured via log4j2.properties  
[2019-05-23T11:44:32,987][WARN][logstash.config.source.multilocal] Ignoring the  
'pipelines.yml' file because modules or command line options are specified  
[2019-05-23T11:44:33,019][INFO][logstash.runner] Starting Logstash {"  
logstash.version"=\>"7.1.0"}  
[2019-05-23T11:44:36,909]**[ERROR]**[logstash.agent] Failed to execute ac  
tion {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"L  
ogStash::ConfigurationError", :message=\>"Expected one of #, input, filter, outpu  
t at line 140, column 1 (byte 7162) after ", :backtrace=\>["C:/Users/Administrato  
r/Desktop/logstash-7.1.0/logstash-7.1.0/logstash-core/lib/logstash/compiler.rb:4  
1:in `compile_imperative'", "C:/Users/Administrator/Desktop/logstash-7.1.0/logst ash-7.1.0/logstash-core/lib/logstash/compiler.rb:49:in`compile\_graph'", "C:/Use  
rs/Administrator/Desktop/logstash-7.1.0/logstash-7.1.0/logstash-core/lib/logstas  
h/compiler.rb:11:in `block in compile_sources'", "org/jruby/RubyArray.java:2577: in`map'", "C:/Users/Administrator/Desktop/logstash-7.1.0/logstash-7.1.0/logstas  
h-core/lib/logstash/compiler.rb:10:in `compile_sources'", "org/logstash/executio n/AbstractPipelineExt.java:151:in`initialize'", "org/logstash/execution/JavaBas  
ePipelineExt.java:47:in `initialize'", "C:/Users/Administrator/Desktop/logstash- 7.1.0/logstash-7.1.0/logstash-core/lib/logstash/java_pipeline.rb:23:in`initiali  
ze'", "C:/Users/Administrator/Desktop/logstash-7.1.0/logstash-7.1.0/logstash-cor  
e/lib/logstash/pipeline\_action/create.rb:36:in `execute'", "C:/Users/Administrat or/Desktop/logstash-7.1.0/logstash-7.1.0/logstash-core/lib/logstash/agent.rb:325 :in`block in converge\_state'"]}  
[2019-05-23T11:44:37,659][INFO][logstash.agent] Successfully started  
Logstash API endpoint {:port=\>9600}  
[2019-05-23T11:44:42,487][INFO][logstash.runner] Logstash shut down.

plus i have port 5514 on my .conf file and its not showing using netstat command (if started as a service)

---

<div class="post-metadata">

**Author:** ![kmohd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmohd/32/49090_2.png) [@kmohd](https://discuss.elastic.co/u/kmohd)\
**Post date:** [May 23, 2019, 8:54am UTC](https://discuss.elastic.co/t/logstash-is-not-working/182378/2 "2019-05-23T08:54:55Z")

</div>

I have changed my logstash config and it is now working fine, it seems like that was causing the issue.

---

<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:** [June 20, 2019, 8:54am UTC](https://discuss.elastic.co/t/logstash-is-not-working/182378/3 "2019-06-20T08:54:58Z")

</div>

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