priyam
(Priyam Shukla)
June 12, 2017, 1:54pm
1
I have configured Filebeat to send data to logstash and logstash sends data to elasticsearch.
Nothing appears in logstash-* in kibana .. neither is there any data in filebeats-*.
Filebeat.yml:
filebeat.prospectors:
input_type: log
paths:
#- /var/log/*.log
D:\ELKWorkspace\ELK1.mule\logs\elk2.log
D:\ELK\logs\Poornima\CKServer.log
exclude_lines: ["^DBG"]
include_lines: ["^ERR", "^WARN", "^INFO"]
output.logstash:
The Logstash hosts
hosts: ["localhost:5044"]
logstash.conf
input {
beats {
port => 5044
}
}
output {
elasticsearch {
hosts => "localhost:9200"
manage_template => false
index => "%{[@metadata ][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata ][type]}"
}
}
Am not sure whether input port in logstash should be 5044 or 5043. Both do not work. However, Following are the console logs:
Beats
logstash
Based on your configuration, the data will be written to filebeat-YYYY.MM.DD indices. What does this query return?
curl http://localhost:9200/_cat/indices?v
priyam
(Priyam Shukla)
June 13, 2017, 3:13am
3
@andrewkroh .. it returns ..
I have pasted the configuration of logstash and filebeat for reference ... do I need to alter/add something in it?
priyam
(Priyam Shukla)
June 13, 2017, 7:13am
4
Further i think logstash is not sending the data received from filebeat to elasticsearch...
priyam
(Priyam Shukla)
June 13, 2017, 12:22pm
5
My issue is resolved.. in case someone is facing the same prob.
In logstash.conf, remove
manage_template => false
index => "%{[@metadata ][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata ][type]}"
In Filebeat, modify
include_lines: ["^ERR", "^WARN", "^INFO"]
as
include_lines: ["ERR", "WARN", "INFO"]
system
(system)
Closed
July 11, 2017, 12:22pm
6
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.