canonical / layer-filebeat

Filebeat is a lightweight log shipper. This is the source for the filebeat charm in the Juju charm store.
Other
3 stars 27 forks source link

logging_to_files #74

Open goku222 opened 5 years ago

goku222 commented 5 years ago

There sould be an option to make filebeat write it's logs to file. Like the logging_to_syslog configuration it's possible to add logging_to_files configuration (https://www.elastic.co/guide/en/beats/filebeat/current/configuration-logging.html#_literal_logging_to_files_literal). It's also possible to add configuration for the log directory and name (logging.files.path and logging.files.name).

kwmonroe commented 5 years ago

When logging_to_syslog is set to False, the charm will log to /var/log/filebeat/filebeat by default. Is this workaround good enough, or is this a request to expose more logging.x configuration in the templates?