Log Server - Dynamic source file
Posted: Thu Aug 15, 2019 8:33 pm
Hi there,
We have downloaded Log Server and would like to forward Jira application log to it. However, the name of Jira log file is dynamic, which ends with a date, e.g. "access_log.2019-08-14".
In rsyslog.conf, we tried to put wildcard in the FILE_PATH: /file/path/access_log.* and it returned error:
imfile: The to-be-monitored file "/opt/atlassian/jira/logs/access_log.*" contains wildcards. This is not supported in polling mode. ...com/e/2420 ]
We are using rsyslog v8.24 which shall support wildcard in filename. Is wildcard only supported in inotify mode? If so, how to enforce inotify mode, we tried the parameter "mode" but no luck. Or is there any alternative instead of using wildcard?
Thanks in advance.
Yuki
We have downloaded Log Server and would like to forward Jira application log to it. However, the name of Jira log file is dynamic, which ends with a date, e.g. "access_log.2019-08-14".
In rsyslog.conf, we tried to put wildcard in the FILE_PATH: /file/path/access_log.* and it returned error:
imfile: The to-be-monitored file "/opt/atlassian/jira/logs/access_log.*" contains wildcards. This is not supported in polling mode. ...com/e/2420 ]
We are using rsyslog v8.24 which shall support wildcard in filename. Is wildcard only supported in inotify mode? If so, how to enforce inotify mode, we tried the parameter "mode" but no luck. Or is there any alternative instead of using wildcard?
Thanks in advance.
Yuki