Filebeat is running on the same AWS instance as the rest of the stack is, except for Elasticsearch (I'm using the AWS provided service for that).
The registry does constantly have the current timestamp. When I run lsof I don't see it in the output:
[a.dramage@wazuh ~]$ sudo lsof | grep /var/lib/filebeat/registry
[a.dramage@wazuh ~]$
My config is below. I'm skipping comments in the name of brevity:
queue.mem:
events: 8064
flush.min_events: 64
flush.timeout: 5s
filebeat.inputs:
- type: log
enabled: true
paths:
- /var/ossec/logs/alerts/*.json
filebeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false
setup.template.settings:
index.number_of_shards: 3
setup.kibana:
host: "localhost:5601"
output.logstash:
hosts: ["localhost:5000"]
processors:
- add_host_metadata: ~
- add_cloud_metadata: ~
logging.level: debug
I should mention that I have a cron job that's restarting Filebeat every five minutes. It "works" but it just doesn't feel like the right way to handle the problem.