General Sidecar question - list_log_files


i am a Graylog newbie since today and have installed Graylog basically and integrated a host via sidecar. As I understood it, Sidecar itself is not a collector, but accesses other collectors (Logstash, Filebeat etc.).

I wonder why I can set the variable list_log_files in the sidecar config. I specified it with “/var/log” and get the log files including size and last modification date in the graylog frontend. What is the use of this information if Sidecar itself is not a collector and I cannot access the log files?

# A list of directories to scan for log files. The sidecar will scan each
# directory for log files and submits them to the server on each update.
# Example:
#     list_log_files:
#       - "/var/log/nginx"
#       - "/opt/app/logs"
# Default: empty list
  - "/var/log"

Best regards

he @rosaLux161

the idea behind this is that you might need the ability to see the content of a directory to write your custom configuration. That should avoid that you need to login to a system and verify filenames or structure of directories.

It is just to display the information.

Thank you, it’s clear now. Should it perhaps be included in the documentation?

At least I did not find it there.

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