How to collect more than one log per input module without using a wildcard

View thread

casey1234
Hi! We have some logs that we would like for NXLog to monitor. The logs are located in a folder where lots of logs also reside. For that reason we don't wish to use a wildcard, because many of the logs we don't care to monitor. How can we in a single input module monitor three files, say file1, file2, and file3? The information found [here](https://nxlog.co/documentation/nxlog-user-guide/im_file.html#im_file_config) indicates that you can use multiple `File` directives but when I tried it didn't work. Example: ``` Module im_file File "/var/log/file1.log" File "/var/log/file2.log" File "/var/log/file3.log" $logtime = strptime($raw_event, '%Y-%m-%d %H:%M:%S'); $timestamp = strftime($logtime, '%s'); $server = hostname_fqdn(); if $raw_event =~ /\[INFO\]/ $log_type = 'INFO'; if $raw_event =~ /\[WARNING\]/ $log_type = 'WARNING'; if $raw_event =~ /\[ERROR\]/ $log_type = 'ERROR'; ``` Do I need three different input modules or can I use just one? Thanks in advance!