Page 1 of 1
Monitor rotating Log folder
Posted: Tue Apr 07, 2015 8:42 am
by WillemDH
Hello,
How do I configure NxLog to send rotating logs to NLS? See screenshot. Every day a logfile is created by NetBackup. The logfiles are named by date.
Grtz
Willem
Re: Monitor rotating Log folder
Posted: Tue Apr 07, 2015 9:42 am
by jolson
Please see the attached nxlog manual. Section 6.2.4 may be of interest to you (im_file).
Re: Monitor rotating Log folder
Posted: Mon Jul 27, 2015 11:37 am
by gsl_ops_practice
Hello,
Just reading the attached doc, I'd like a confirmation that all I need to do is run the setup script and give a wildcard in the filename? We have a few application logs that have the current date as the extension.
Code: Select all
bash setup-linux.sh -s logserver.name -p 5544 -f linuxfile.* -t FILE_TAG
Thank you,
Alex
Re: Monitor rotating Log folder
Posted: Mon Jul 27, 2015 11:41 am
by jolson
It looks like those logs reside on a Windows host, in which case you'll need to configure nxlog to set up the watching of your files as opposed to running the linux setup script. You should be able to follow the 'Windows File' setup guide and replace a specific file with a wildcard with no problems.
Code: Select all
# Watch your own files
<Input windowsfile>
Module im_file
File 'C:\path\to\target\file\*'
SavePos TRUE
Exec $Message = $raw_event;
</Input>