how to add multiple file sources to the config file?

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

how to add multiple file sources to the config file?

Post by dlukinski »

Hello

How to add multiple file sources to the config file?

<Input windowsfile2>
Module im_file
File 'C:\Program Files (x86)\Folder1\Folder2\pgsql\data\pg_log' - say I have few more LOG files to add?
SavePos TRUE
# ReadFromLast FALSE
Exec $Message = $raw_event;
</Input>

Thank you
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: how to add multiple file sources to the config file?

Post by dlukinski »

dlukinski wrote:Hello

How to add multiple file sources to the config file?

<Input windowsfile>
Module im_file
File 'C:\Program Files (x86)\Folder1\Folder2\pgsql\data\pg_log' - say I have few more LOG files to add?
SavePos TRUE
# ReadFromLast FALSE
Exec $Message = $raw_event;
</Input>

Thank you
I guess it would have to be :

<Input windowsfile2> - File # 2
Module im_file
File 'C:\Program Files (x86)\Folder1\Folder2\pgsql\data\pg_log2'
SavePos TRUE
# ReadFromLast FALSE
Exec $Message = $raw_event;
</Input>
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: how to add multiple file sources to the config file?

Post by cdienger »

It looks like the wildcard in a filename is supported as well:

https://nxlog.co/docs/nxlog-ce/nxlog-re ... onfig_file
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: how to add multiple file sources to the config file?

Post by dlukinski »

cdienger wrote:It looks like the wildcard in a filename is supported as well:

https://nxlog.co/docs/nxlog-ce/nxlog-re ... onfig_file
Thank you
Please close
Locked