If wildcards are not enough, can I specify multiple files like


File "/var/log/messages;/var/log/otherlog;/var/log/something"

Or are regular expressions allowed here?

AskedApril 2, 2015 - 2:22pm

Answer (1)

Unfortunately that won't work, only one File directive can be used per module instance. On the other hand you can add multiple im_file instances to your conf. Not so nice but works.


Comments (1)

  • i5513's picture


    As workaround, create a directory /var/log/nxlog-logs , and populate it with symlinks to log files which you want to use

    I'm thinking it for apache logs (/var/log/apache/*access_log). Logs are rotated inside /var/log/apache, so I need or move it out or made that workaround