Filebeat-god process does not create filebeat registry file as mentioned in the filebeat.yml config


(kasi) #1

I have specified the registry file as registry_file: .filebeat-registry and I have multiple file beat instances
and i want to have individual file beat registry for each of my file beat instances, this is the command I am
using

filebeat-god -r / -n -p /usr/xxx/filebeat/filebeat.pid -- /usr/bin/filebeat -c /usr/xxx/filebeat/filebeat.yml

this is my definition in my filebeat.yml for the registry

registry_file: .filebeat-registry


(ruflin) #2

Can you share your full config?


(kasi) #3

filebeat:

prospectors:
    -
      paths:
        - /usr/tomcat/logs/catalina.out
      input_type: catalina
      fields:
       discriminator: xxxxxx
       assembly: xxxxxx
       container: xxxxxx
       managementunit: xxxxxx
       mnemonic: xxxxxx
       division: xxxxxx
       environment: xxxxxx

      fields_under_root: true
registry_file: .filebeat-registry
output:
  logstash:
    enabled: true
    hosts: [xxx.xxx.xxx.xxx:5044"]
    worker: 1
logging:
  level: debug
  to_files: true
  files:
    path: /usr/filebeat/
    name: filebeat-agent.log
    rotateeverybytes: 10485760

(ruflin) #4

Which version of filebeat are you using? The most recent version of Filebeat (5.0.0-alpha-x) introduces a data path: https://www.elastic.co/guide/en/beats/filebeat/master/configuration-path.html#_data As the data path can also be configured as a parameter I assume this would work better in your case.

I think the problem with the above is that all instances are creating the registry file in the same place as it is relative the executable. Can you check how many registry files you have? Alternatively use absolute paths for the registry file.


(kasi) #5

version 1.1.1 initially i gave the full path it still did not work. I have one registry and that is also names
.registry, it works fine if i start it with filebeat and not filebeat-god.

Thanks,

Kasi


(Steffen Siering) #6

Can you add some log output from running filebeat in foreground? Just for us to confirm it's working as intended. If possible I'd use an absolute path, otherwise filebeat will try to create the registry file in current working directory (no idea which directory will be used if run as a service).


(system) #7

This topic was automatically closed after 21 days. New replies are no longer allowed.