-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Sometimes on new machines nxlog may start before log writers have had a chance to touch their initial files. If nxlog is configured to use a plain path, it emits a warning about /var/path/stdout.log does not exist and doesn't seem to retry. I tried switching to a prefix glob (e.g. /var/path/*stdout.log) to take advantage of how globs are supposed to check for new files, but it emits Module abcd has no input files to read and doesn't appear to check for new files again. The glob prefix method is what's currently committed.
Not sure what other things to try. I don't want the config generator to be touching all files to ensure they exist because it's not aware of what permissions/owners they and any intermediate directories should be.
Current solutions are to manually restart the logsearch-logs service, or use a sufficiently large logsearch.logs.start_delay property.