# Logstash not giving output log events on console

**URL:** <https://discuss.elastic.co/t/logstash-not-giving-output-log-events-on-console/137421>\
**Category:** Logstash\
**Created:** [June 26, 2018, 11:16am UTC](https://discuss.elastic.co/t/logstash-not-giving-output-log-events-on-console/137421 "2018-06-26T11:16:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shweta\_Priyadarshani](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@Shweta\_Priyadarshani](https://discuss.elastic.co/u/Shweta_Priyadarshani)\
**Post date:** [June 26, 2018, 11:16am UTC](https://discuss.elastic.co/t/logstash-not-giving-output-log-events-on-console/137421/1 "2018-06-26T11:16:21Z")

</div>

Hi Everyone,  
I am new to logstash. I am trying to run a logstash config file but facing a problem as discussed on the link :

> [@Logstash not showing any output (SOLVED)](https://discuss.elastic.co/t/logstash-not-showing-any-output-solved/28636/30):
>
> @honey, please start a new thread for your question instead of trying to resurrect an old one.

Lateron in the post its mentioned that the issue got resolved as "It turns out my first logfile I am testing with is using old style line endings." Can anyone please explain what changes are needed to be made my logs file so that i can at least get an o/p on console.

Following are my files details :  
1.) logstash-tutorial-dataset : contains logs  
Sample logs in the file:

83.149.9.216 - - [04/Jan/2015:05:13:42 +0000] "GET /presentations/logstash-monitorama-2013/images/kibana-search.png HTTP/1.1" 200 203023 "[http://semicomplete.com/presentations/logstash-monitorama-2013/](http://semicomplete.com/presentations/logstash-monitorama-2013/)" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10\_9\_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36"  
83.149.9.216 - - [04/Jan/2015:05:13:42 +0000] "GET /presentations/logstash-monitorama-2013/images/kibana-dashboard3.png HTTP/1.1" 200 171717 "[http://semicomplete.com/presentations/logstash-monitorama-2013/](http://semicomplete.com/presentations/logstash-monitorama-2013/)" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10\_9\_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36"  
83.149.9.216 - - [04/Jan/2015:05:13:44 +0000] "GET /presentations/logstash-monitorama-2013/plugin/highlight/highlight.js HTTP/1.1" 200 26185 "[http://semicomplete.com/presentations/logstash-monitorama-2013/](http://semicomplete.com/presentations/logstash-monitorama-2013/)" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10\_9\_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36"

2.) my filebeat.yml file configuration to read logs from above file and pass it to logstash :

filebeat.prospectors:

- type: log  
paths:
  - /D:/shweta/ELK\_poc/logstash-tutorial-dataset  
output.logstash:  
hosts: ["localhost:5044"]

3.) my logstash config file :

input {  
beats {  
port =\> "5044"  
}  
}  
filter {  
grok {  
match =\> { "message" =\> "%{COMBINEDAPACHELOG}"}  
}  
}  
output {  
stdout { codec =\> rubydebug }  
}

* * *

when i am trying to run command :  
bin/logstash -f first-pipeline.conf --config.reload.automatic

its not giving any o/p. Just giving following :

Sending Logstash's logs to D:/shweta/ELK\_poc/logstash-6.3.0/logs which is now configured via log4j2.properties  
[2018-06-26T16:41:16,534][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2018-06-26T16:41:17,259][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"6.3.0"}  
[2018-06-26T16:41:22,046][INFO][logstash.pipeline] Starting pipeline {:pipeline\_id=\>"main", "pipeline.workers"=\>2, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>50}  
[2018-06-26T16:41:23,157][INFO][logstash.inputs.beats] Beats inputs: Starting input listener {:address=\>"0.0.0.0:5044"}  
[2018-06-26T16:41:23,355][INFO][logstash.pipeline] Pipeline started successfully {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x4df2d295 run\>"}  
[2018-06-26T16:41:23,386][INFO][org.logstash.beats.Server] Starting server on port: 5044  
[2018-06-26T16:41:23,519][INFO][logstash.agent] Pipelines running {:count=\>1, :running\_pipelines=\>[:main], :non\_running\_pipelines=\>}  
[2018-06-26T16:41:23,941][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}

Here , there is no o/p. Can anyone help me figuring out the issue.

Thanks in advance  
Shweta

---

<div class="post-metadata">

**Author:** ![kmcdeogracias](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@kmcdeogracias](https://discuss.elastic.co/u/kmcdeogracias)\
**Post date:** [June 27, 2018, 9:10am UTC](https://discuss.elastic.co/t/logstash-not-giving-output-log-events-on-console/137421/2 "2018-06-27T09:10:46Z")

</div>

Getting the exact same issue.

---

<div class="post-metadata">

**Author:** ![Shweta\_Priyadarshani](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@Shweta\_Priyadarshani](https://discuss.elastic.co/u/Shweta_Priyadarshani)\
**Post date:** [June 27, 2018, 9:23am UTC](https://discuss.elastic.co/t/logstash-not-giving-output-log-events-on-console/137421/3 "2018-06-27T09:23:44Z")

</div>

Issue got resolved when instead of using filebeat , i am directly giving log file path in the logstash conf file like :  
input {  
file {  
path =\> "D:/shweta/ELK\_poc/sample\_input\_log.txt"  
start\_position =\> "beginning"  
sincedb\_path =\> "NUL"  
ignore\_older =\> 0  
}  
}

filter {  
grok {  
match =\> { "message" =\> "%{COMBINEDAPACHELOG}"}  
}  
geoip {  
source =\> "clientip"  
}  
}

output {  
stdout { codec =\> rubydebug }  
}

Though this is temporary fix without filebeat . If filebeat is to be used , need to figure out the issue, But for now its working fine for me removing filebeat.

---

<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:** [July 25, 2018, 9:23am UTC](https://discuss.elastic.co/t/logstash-not-giving-output-log-events-on-console/137421/4 "2018-07-25T09:23:45Z")

</div>

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