I am not able to start the filebeat service. below is the error I am getting
[root@inmbz1196 config]# service filebeat status
● filebeat.service - Filebeat sends log files to Logstash or directly to Elasticsearch.
Loaded: loaded (/usr/lib/systemd/system/filebeat.service; disabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Fri 2019-02-22 09:33:46 EST; 782ms ago
Docs: https://www.elastic.co/products/beats/filebeat
Process: 1972 ExecStart=/usr/share/filebeat/bin/filebeat -c /etc/filebeat/filebeat.yml -path.home /usr/share/filebeat -path.config /etc/filebeat -path.data /var/lib/filebeat -path.logs /var/log/filebeat (code=exited, status=1/FAILURE)
Main PID: 1972 (code=exited, status=1/FAILURE)
Feb 22 09:33:46 inmbz1196.in.dst.ibm.com systemd[1]: filebeat.service: main process exited, code=exited, status=1/FAILURE
Feb 22 09:33:46 inmbz1196.in.dst.ibm.com systemd[1]: Unit filebeat.service entered failed state.
Feb 22 09:33:46 inmbz1196.in.dst.ibm.com systemd[1]: filebeat.service failed.
Feb 22 09:33:46 inmbz1196.in.dst.ibm.com systemd[1]: filebeat.service holdoff time over, scheduling restart.
Feb 22 09:33:46 inmbz1196.in.dst.ibm.com systemd[1]: Stopped Filebeat sends log files to Logstash or directly to Elasticsearch..
Feb 22 09:33:46 inmbz1196.in.dst.ibm.com systemd[1]: start request repeated too quickly for filebeat.service
Feb 22 09:33:46 inmbz1196.in.dst.ibm.com systemd[1]: Failed to start Filebeat sends log files to Logstash or directly to Elasticsearch..
Feb 22 09:33:46 inmbz1196.in.dst.ibm.com systemd[1]: Unit filebeat.service entered failed state.
Feb 22 09:33:46 inmbz1196.in.dst.ibm.com systemd[1]: filebeat.service failed.
[root@inmbz1196 config]#
hence I am trying to get logs from localhost, please find the log stash configuration below
input {
tcp {
port => 5000
type => syslog
}
udp {
port => 5000
type => syslog
}
}
filter {
if [type] == "syslog" {
grok {
match => { "message" => "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:[%{POSINT:syslog_pid}])?: %{GREEDYDATA:syslog_message}" }
add_field => [ "received_at", "%{@timestamp}" ]
add_field => [ "received_from", "%{host}" ]
}
date {
match => [ "syslog_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss" ]
}
}
}
filebeat.service - Filebeat sends log files to Logstash or directly to Elasticsearch.
Loaded: loaded (/usr/lib/systemd/system/filebeat.service; disabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Fri 2019-02-22 09:33:46 EST; 3 days ago
Docs: https://www.elastic.co/products/beats/filebeat
Main PID: 1972 (code=exited, status=1/FAILURE)
Feb 22 09:33:46 inmbz1196.in.dst.ibm.com systemd[1]: filebeat.service: main process exited, code=exited, status=1/FAILURE
Feb 22 09:33:46 inmbz1196.in.dst.ibm.com systemd[1]: Unit filebeat.service entered failed state.
Feb 22 09:33:46 inmbz1196.in.dst.ibm.com systemd[1]: filebeat.service failed.
Feb 22 09:33:46 inmbz1196.in.dst.ibm.com systemd[1]: filebeat.service holdoff time over, scheduling restart.
Feb 22 09:33:46 inmbz1196.in.dst.ibm.com systemd[1]: Stopped Filebeat sends log files to Logstash or directly to Elasticsearch..
Feb 22 09:33:46 inmbz1196.in.dst.ibm.com systemd[1]: start request repeated too quickly for filebeat.service
Feb 22 09:33:46 inmbz1196.in.dst.ibm.com systemd[1]: Failed to start Filebeat sends log files to Logstash or directly to Elasticsearch..
Feb 22 09:33:46 inmbz1196.in.dst.ibm.com systemd[1]: Unit filebeat.service entered failed state.
Feb 22 09:33:46 inmbz1196.in.dst.ibm.com systemd[1]: filebeat.service failed.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.