title: Rsyslog: imfile does not switch to inotify mode
body: <p>I'm trying to send multiple nginx logs to loggly...
  Config file: /etc/rsyslog.d/21-nginx.conf</p>
  
  <pre><code>$ModLoad imfile
      #$InputFilePollInterval 10
      $InputFileMode inotify
      $WorkDirectory /var/spool/rsyslog
      $PrivDropToGroup adm
  
      # nginx access file:
      $InputFileName /var/log/nginx/*access.log
      $InputFileTag nginx-access:
      $InputFileStateFile stat-nginx-access
      $InputFileSeverity info
      $InputFilePersistStateInterval 20000
      $InputRunFileMonitor
  
      # other stuff continues......
  </code></pre>
  
  <p>after restart i get this error in log syslog:</p>
  
  <pre><code>imfile: The to-be-monitored file "/var/log/nginx/*access.log" contains wildcards. This is not supported in polling mode. [v8.16.0 try http://www.rsyslog.com/e/2420 ]
  activation of module imfile failed [v8.16.0 try http://www.rsyslog.com/e/-3 ]
  </code></pre>
  
  <p>did i make something wrong?</p>