# Not getting logs from filebeat to logstash

**URL:** <https://discuss.elastic.co/t/not-getting-logs-from-filebeat-to-logstash/150318>\
**Category:** Logstash\
**Created:** [September 28, 2018, 10:12am UTC](https://discuss.elastic.co/t/not-getting-logs-from-filebeat-to-logstash/150318 "2018-09-28T10:12:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![narasimha](https://avatars.discourse-cdn.com/v4/letter/n/2bfe46/32.png) [@narasimha](https://discuss.elastic.co/u/narasimha)\
**Post date:** [September 28, 2018, 10:12am UTC](https://discuss.elastic.co/t/not-getting-logs-from-filebeat-to-logstash/150318/1 "2018-09-28T10:12:38Z")

</div>

I am new to ELK stack, I am trying to get the logs from filebeat to logstash and display on stand output(terminal).

Filebeat configuration:

filebeat.inputs:

- type: log

#output.elasticsearch:

# Array of hosts to connect to.

# hosts: ["localhost:9200"]

.......  
#----------------------------- Logstash output --------------------------------  
output.logstash:

# The Logstash hosts

hosts: ["localhost:5044"]

Logstash configuration:

input {  
beats {  
port =\> "5044"  
}  
}

# The filter part of this file is commented out to indicate that it is

# optional.

# filter {

# 

# }

output {  
stdout { codec =\> rubydebug }  
}

1. After above configuration changes, I started filebeat service, and after that i run below command.  
sudo ./filebeat -e -c filebeat.yml -d "publish"

The following logs keep on generating.  
2018-09-28T13:56:49.521+0530 INFO [monitoring] log/log.go:149 Total non-zero metrics {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":70,"time":{"ms":75}},"total":{"ticks":130,"time":{"ms":142},"value":130},"user":{"ticks":60,"time":{"ms":67}}},"info":{"ephemeral\_id":"a841dc35-2fac-4178-ba86-67c1c9f7169b","uptime":{"ms":193709}},"memstats":{"gc\_next":4194304,"memory\_alloc":2145872,"memory\_total":5117432,"rss":22495232}},"filebeat":{"events":{"added":1,"done":1},"harvester":{"open\_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0},"reloads":1},"output":{"type":"logstash"},"pipeline":{"clients":0,"events":{"active":0,"filtered":1,"total":1}}},"registrar":{"states":{"current":1,"update":1},"writes":{"success":2,"total":2}},"system":{"cpu":{"cores":4},"load":{"1":1.35,"15":1.43,"5":1.45,"norm":{"1":0.3375,"15":0.3575,"5":0.3625}}}}}}

The same time I have tested the logstash config it says Ok, after that I run below command.

bin/logstash -f first-pipeline.conf --config.reload.automatic

It has stopped at the below line, after that I am not getting any logs from filebeat.

[INFO] 2018-09-28 13:56:11.242 [[main]\<beats] Server - Starting server on port: 5044  
[INFO] 2018-09-28 13:56:11.597 [Api Webserver] agent - Successfully started Logstash API endpoint {:port=\>9600}

Please help on the same

---

<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:** [October 26, 2018, 10:12am UTC](https://discuss.elastic.co/t/not-getting-logs-from-filebeat-to-logstash/150318/2 "2018-10-26T10:12:46Z")

</div>

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