Filebeat not working

Filebeat is not logging logs from a path. Here is my filebeat config -

filebeat.inputs:

  • type: log
    enabled: true
    paths:
    • /var/log/xyz/*/ *.log
      input_type: log
      json.keys_under_root: true
      json.add_error_key: true
      json.message_key: message
      reload.enabled: false
      setup.template.settings:
      index.number_of_shards: 1
      index.codec: best_compression

Inside /var/log/xyz directory i have 2 folders which has the log files. For one directory logs are coming in to kibana but for other one it is not working.

Not sure if that is a typo but there is a space in that path right before the *.log

It's a typo but the path is correctly defined. We started receiving the logs for other apps, just we are not receiving logs for one app. earlier we were receiving the logs from the app but when new index got created the logs are not coming in.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.