Hi, so i have ansible playbook install filebeat agent on a server. After installation, i went to check the service and it was working fine. But then i manually stopped the service and starting again, afterwards i have getting the Active: failed (Result: start-limit) error even if i run the playbook again with deleting all the files and folders of filebeat. Please advise.
$ service filebeat status
● filebeat.service - Filebeat sends log files to Logstash or directly to Elasticsearch.
Loaded: loaded (/usr/lib/systemd/system/filebeat.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Fri 2019-11-15 10:26:48 MST; 23s ago
Docs: https://www.elastic.co/products/beats/filebeat
Process: 7545 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: 7545 (code=exited, status=1/FAILURE)
Here is the filebeat.yml
############################# Filebeat ######################################
filebeat.registry_file: /var/lib/filebeat/registry
filebeat.config_dir: /etc/filebeat/conf.d
############################# Output ##########################################
output.logstash.hosts: ["#hostnameA:5044", "#hostnameB:5044"]
output.logstash.loadbalance: true
output.logstash.index: filebeat
############################# Logging #########################################
logging.level: info
logging.to_files: false
logging.to_syslog: true
logging.metrics.enabled: true
logging.metrics.period: 5m
logging.files.path: /var/log/filebeat
logging.files.rotateeverybytes: 10485760
logging.files.keepfiles: 7