What's new

Register Now! Find useful tips, Interact /w Community Members and join the part the Best Community on the Internet!

configure logarr

Assists Greatly with Development Costs


Blitz Samurai
Hi guys. How is logarr configured. i'm running a hetzner, but the logarr is configured to check sonarr and radarr at c:\programfiles (and thats not linux) :unsure::D


Project Manager
Ya I was wondering to. I'm doing container rewrites and etc. I'll work on logger next. Was going in ABC order but can make the next push. Logger was added just to get it going in case someone wanted to push a fix.


Blitz 3rd Class
I was able to get this going. You have to manually edit the config.php file to add your log locations:

sudo nano /opt/appdata/logarr/www/logarr/assets/config/config.php

Scroll down and set your timezone:
'timezone' => 'UTC',

Then scroll down and set your log locations in the section with the log file examples. Here is my example config:

// ** Add Logs BELOW this line **

        "Deluge" => '/opt/appdata/deluge/deluged.log',

        "Jackett" => '/opt/appdata/jackett/Jackett/log.txt',

        "LazyLibrarian" => '/opt/appdata/lazylibrarian/log/lazylibrarian.log',

        "PlexMediaServer" => '/opt/appdata/plex/database/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log',

        "PlexMediaScanner" => '/opt/appdata/plex/database/Library/Application Support/Plex Media Server/Logs/Plex Media Scanner.log',

        "Sonarr" => '/opt/appdata/sonarr/logs/sonarr.txt',

        "Radarr" => '/opt/appdata/radarr/logs/radarr.txt',

        "Tautulli" => '/opt/appdata/tautulli/logs/tautulli.log'

// ** Add Logs ABOVE this line **
Make sure you have a comma after each line - except the last one. The page won't load unless you do.

Save the file CTRL+O then ENTER then CTRL+X

Then go to the URL and see if it worked.

One suggestion: By default the container is setup with full R/W access to the /opt/ folder on the server. I changed that volume in Portainer to be read-only to be safe. Seems to work fine.


Blitz 3rd Class
I had some more fun with this yesterday. I wrote a script that creates some extra log files that I can import into logarr. This avoids me having to change the permissions on syslogs and also creates smaller log samples that work better in logarr anyways. It's really nice to see all my various logs together at one time.

#Log showing rclone copy status
tail -n 800 /opt/appdata/plexguide/rclone | tee /opt/backup/logs/rclone_log.txt
#Log showing contents of /mnt/move
tree /mnt/move | tee /opt/backup/logs/tree_mnt_move.txt
#Log showing contents of /nzbget/completed
tree /mnt/nzbget/completed | tee /opt/backup/logs/tree_mnt_nzbget.txt
#Log showing recent blocks by the UFW firewall
tail -n 500 /var/log/syslog | egrep --line-buffered 'UFW BLOCK' | tee /opt/backup/logs/syslog_ufw_blocks.txt
#Log showing recent cron jobs
tail -n 500 /var/log/syslog | egrep --line-buffered 'CRON' | tee /opt/backup/logs/syslog_cronjobs.txt
#Log showing tail end of ubuntu authorization log
tail -n 500 /var/log/auth.log | tee /opt/backup/logs/var_log_authlog.txt
#Log showing tail end of fail2ban log
tail -n 500 /var/log/fail2ban.log | tee /opt/backup/logs/var_log_fail2ban.txt
#Set ownership of the new log files to the logarr user
chown -R youruserhere:yourgrouphere /opt/backup/logs/

The script is setup to run every minute via a cron job. It dumps any text output to null sudo crontab -e:
#Create Log Files for Logarr
* * * * * bash /opt/backup/scripts/createlogs.sh >/dev/null 2>&1

I then added those new log files to logarr config.php file:
        "rclone Status" => '/opt/backup/logs/rclone_log.txt',

        "Firewall Blocks" => '/opt/backup/logs/syslog_ufw_blocks.txt',

        "System AuthLogs" => '/opt/backup/logs/var_log_authlog.txt',

        "Fail2Ban" => '/opt/backup/logs/var_log_fail2ban.txt',

        "/mnt/move" => '/opt/backup/logs/tree_mnt_move.txt',

        "/mnt/nzbget/completed" => '/opt/backup/logs/tree_mnt_nzbget.txt',

        "Scheduled Cron Jobs" => '/opt/backup/logs/syslog_cronjobs.txt',
Last edited:

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Development Donations


Top NZB NewsGroups!

Members - Up To a 58% Discount!