Page 1 of 1

Log Server - Dynamic source file

Posted: Thu Aug 15, 2019 8:33 pm
by yuki
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

Re: Log Server - Dynamic source file

Posted: Fri Aug 16, 2019 10:09 am
by cdienger
Using a wildcard in polling mode doesn't seem to be an issue on the systems I tested with(8.40.0 and 5.8.10), so there may be other factors in place here. That said, I don't see a way to switch to inotify using the legacy config methods and it looks like rainerscript configuration would need to be used to switch. If you'd like to provide a copy of the current configuration file, I can make some further suggestions.

Re: Log Server - Dynamic source file

Posted: Mon Aug 19, 2019 6:55 am
by scottwilkerson
yuki wrote:Hi there,

The problem is solved by modifying the file name format.

Please close the case and thanks a lot.

Regards,
Yuki