Hi All,
We are working with filebeat integrating with redis cache.
When i start the filebeat it is not at all starting.
after i issued the yml file with -configtest it is hanged.How to see whether it is sucess or failure
Hi All,
We are working with filebeat integrating with redis cache.
When i start the filebeat it is not at all starting.
after i issued the yml file with -configtest it is hanged.How to see whether it is sucess or failure
Can you share some more details? Filbeat version? Config file? Can you run it with -e -d "*"
options and share the output?
sudo /etc/init.d/filebeat status
â filebeat.service - LSB: Sends log files to Logstash or directly to Elasticsearch.
Loaded: loaded (/etc/rc.d/init.d/filebeat)
Active: active (running) since Thu 2016-06-02 10:54:23 BST; 4min 46s ago
Docs: man:systemd-sysv-generator(8)
Process: 19916 ExecStop=/etc/rc.d/init.d/filebeat stop (code=exited, status=0/SUCCESS)
Process: 21690 ExecStart=/etc/rc.d/init.d/filebeat start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/filebeat.service
ââ21704 filebeat-god -r / -n -p /var/run/filebeat.pid -- /usr/bin/filebeat -c /etc/filebeat/filebeat.yml
ââ21705 /usr/bin/filebeat -c /etc/filebeat/filebeat.yml
Jun 02 10:58:16 HOSTANME /usr/bin/filebeat[21705]: filebeat.go:134: Events sent: 40
Jun 02 10:58:16 HOSTANME /usr/bin/filebeat[21705]: registrar.go:157: Registry file updated. 2236 states w...en.
Jun 02 10:58:21 HOSTANME /usr/bin/filebeat[21705]: filebeat.go:134: Events sent: 10
Jun 02 10:58:21 HOSTANME /usr/bin/filebeat[21705]: registrar.go:157: Registry file updated. 2236 states w...en.
Jun 02 10:58:28 HOSTANME /usr/bin/filebeat[21705]: filebeat.go:134: Events sent: 17
Jun 02 10:58:28 HOSTANME /usr/bin/filebeat[21705]: registrar.go:157: Registry file updated. 2236 states w...en.
Jun 02 10:58:56 HOSTANME /usr/bin/filebeat[21705]: filebeat.go:134: Events sent: 66
Jun 02 10:58:56 HOSTANME /usr/bin/filebeat[21705]: registrar.go:157: Registry file updated. 2236 states w...en.
Jun 02 10:59:03 HOSTANME /usr/bin/filebeat[21705]: filebeat.go:134: Events sent: 125
Jun 02 10:59:03 HOSTANME /usr/bin/filebeat[21705]: registrar.go:157: Registry file up
please run filebeat in foreground from command line (don't use /etc/init.d/filebeat
) via filebeat -c /etc/filebeat/filebeat.yml -v -d '*'
.
After we start the filebeat like this (version is 1.2) the service is not coming to active
sudo service filebeat status
â filebeat.service - filebeat
Loaded: loaded (/usr/lib/systemd/system/filebeat.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Wed 2016-06-08 13:12:01 BST; 4s ago
Docs: https://www.elastic.co/guide/en/beats/filebeat/current/index.html
Process: 13066 ExecStop=/etc/init.d/filebeat stop (code=exited, status=0/SUCCESS)
Process: 13044 ExecStart=/etc/init.d/filebeat start (code=exited, status=0/SUCCESS)
Main PID: 13044 (code=exited, status=0/SUCCESS)
Jun 08 13:12:01 HOSTANME filebeat[13044]: [ OK ]
Jun 08 13:12:01 HOSTANME /usr/bin/filebeat[13061]: logp.go:130: Disable stderr logging
Jun 08 13:12:01 HOSTANME /usr/bin/filebeat[13061]: beat.go:135: Initializing output plugins
Jun 08 13:12:01 HOSTANME /usr/bin/filebeat[13061]: geolite.go:24: GeoIP disabled: No paths were set under...ths
Jun 08 13:12:01 HOSTANME /usr/bin/filebeat[13061]: client.go:297: ES Ping(url=http://localhost:9200, time...0s)
Jun 08 13:12:01 HOSTANME /usr/bin/filebeat[13061]: client.go:302: Ping request failed with: Head http://l...sed
Jun 08 13:12:01 HOSTANME /usr/bin/filebeat[13061]: outputs.go:126: Activated elasticsearch as output plugin.
Jun 08 13:12:01 HOSTANME /usr/bin/filebeat[13061]: logstash.go:106: Max Retries set to: 3
Jun 08 13:12:01 HOSTANME /usr/bin/filebeat[13061]: client.go:100: connect
Jun 08 13:12:01 HOSTANME filebeat[13066]: Stopping filebeat: [ OK ]
Hint: Some lines were ellipsized, use -l to show in full.
what are you trying to do? Title states you want to connect to redis (not recommended for filebeat 1.x releases, but 5.x is ok), but logs print errors about writing to Elasticsearch + logstash output seems to be configured too. No redis in log.
what you mean by:
After we start the filebeat like this (version is 1.2) the service is not coming to active
Sample output given by you is definitely not from filebeat running in foreground as requested.
Sorry stefan wrong paste.I wanted to create a new ticket
This topic was automatically closed after 21 days. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.