Page 1 of 1

how to add multiple file sources to the config file?

Posted: Thu Oct 25, 2018 10:46 am
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

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

Posted: Thu Oct 25, 2018 11:43 am
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>

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

Posted: Thu Oct 25, 2018 4:09 pm
by cdienger
It looks like the wildcard in a filename is supported as well:

https://nxlog.co/docs/nxlog-ce/nxlog-re ... onfig_file

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

Posted: Fri Oct 26, 2018 6:55 am
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