Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Rsyslogd imfile support

Featured Replies

For some reason the imfile.so module was not integrated into the rsyslogd for unraid. I would like to be able to monitor files in my unraid box or any of the docker containers and send to a remote syslog server for storage and parsing. Most standard linux like Ubuntu and CentOS come with it included by default. 

 

I tried to just copy the imfile.so file from another distro into unraid but it gives and error trying to restart rsyslogd.

 

Link to module: https://www.rsyslog.com/doc/v8-stable/configuration/modules/imfile.html

 

Example configuration adjustments to /etc/rsyslog.conf to monitor a file and send remotely:

module(load="imfile" PollingInterval="10")

# File 1
input(type="imfile" File="/mnt/user/appdata/PlexMediaServer/Library/Application Support/Plex Media Server/Logs/Plex\ Media\ Server.log"
Tag="plex"
StateFile="/var/spool/rsyslog/plex"
#Severity="error"
Facility="local1")

local1.* @1.2.3.4:514

 

  • Author

Thanks, I know about that but that forwards unraid syslog. I want to forward a docker container log file to a syslog, which can't be done as you suggest. 

  • 11 months later...

I'm missing this module too. Would be great if it would be included.

Did you find a link where we can download the `.so` file and "install" it manually for the meantime?

  • 4 weeks later...

+1

 

Indeed. I would love to add my Plex logs for example, as suggested below :

 

https://chasewright.com/plex-logs-to-remote-syslog-server-with-rsyslog/

https://serverfault.com/questions/1046055/rsyslog-forward-log-with-space-in-path-or-name

 

But you definitely need the imfile.so module to do so.

 

Why is it missing in the first place ?

  • 1 year later...

I need this module too.... I want to send the logs in x location in my unraid system to a remote syslog

  • 9 months later...

I'd also been keen to see the imfile module included in the default OS so I can onforward logs like /var/log/ipmifan which generates temp readings from my motherboards IPMI and adjust the fans accordingly.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.