Comment by nodesocket
Comment by nodesocket 2 days ago
Very nice work. Anyway to specify a group of log files in the config that are shared across many hosts? For example:
log_files:
mygroup:
- /var/log/syslog
- /var/log/foo
- /var/log/bar
log_streams:
myhost-01:
hostname: actualhost1.com
port: 1234
user: myuser
log_files: mygroup
myhost-02:
hostname: actualhost2.com
port: 7890
user: myuser
log_files: mygroup
myhost-03:
hostname: actualhost3.com
port: 8888
user: myuser
log_files: mygroup
Thanks. And no, as of today, there's no way to define a group like that. Might be a viable idea though.
However, before we go there, I want to double check that we're on the same page: this `log_files` field specifies only files _in the same logstream_; meaning, these files need to have consecutive logs. So for example, it can be ["/var/log/syslog", "/var/log/syslog.1"], or it can be ["/var/log/auth.log", "/var/log/auth.log.1"], but it can NOT be something like ["/var/log/syslog", "/var/log/auth.log"].