Monitorr / logarr

“Logarr” is a self-hosted PHP web app that consolidates, formats, and displays log and text files for easy analysis and monitoring.
https://github.com/Monitorr
MIT License
277 stars 12 forks source link

Unraid Installation not using appdata folder #147

Open tmchow opened 4 years ago

tmchow commented 4 years ago

Your environment:

Describe your issue:

I'm using the official Unraid template for installation. The config.php isn't being read from the appdata folder that's configured as part of the xml template (which is set to /mnt/user/appdata/logarr). Within the container, I see the config at /config/www/logarr/assets/config/config.php instead of using the /app/config.php.

ItsRainingHP commented 2 years ago

This is old but I am posting for users struggling with Unraid setup. The wiki is confusing and hard to understand. I am posting my settings so others can set this setup successful as it took me several hours to get working (and I find it rather annoying to have to join a discord an hope someone replies). I set up my Logarr to utilize Plex Media Server, Sonarr, Radarr, and Logarr logs successfully.

Results:

image

Step one is to utilize the Unraid-CA supported version which is monitorr/logarr-alpha. You can find this by going to the Unraid Dashboard > Apps > Search "Loggar". Currently, this is a beta version according to the CA store.

image

By default, this will only give you a container port variable of 4000, the /app path, PUID, and PGID. To utilize the other logs you must give permissions to view them. Below are screenshots of my setup with text versions of the paths:

image

Note: I changed my default location for sonarr/radarr. If you are using default parameters for Unraid the Host Path will be /mnt/user/appdata/sonarr/ and /mnt/user/appdata/radarr/ respectively.

Name: Sonarr Logs (optional) Container Path: /var/log/loggarlogs/sonarr Host Path: /mnt/user/appdata/config/sonarr/

Name: Radarr Logs (optional) Container Path: /var/log/loggarlogs/radarr Host Path: /mnt/user/appdata/config/radarr/

Name: Plex Logs (optional) Container Path: /var/log/loggarlogs/plex Host Path: /mnt/user/appdata/plex/Library/Application Support/Plex Media Server/

Name: Config Container Path: /app Host Path: /mnt/user/appdata/Logarr

The config.php by default will be in your appdata/Logarr/user data/ folder. You can either edit this manually on your PC with an editor OR utilize Config Editor (unraid CA store)

image

Going to Tools > Config File Editor, using the second text box locate the config.json in the aforementioned user data folder. For example:

image

Copy paste and restart Logarr. Enjoy.

Config.php


    "settings": {
        "rfconfig": "15000",
        "rftime": "60000",
        "rflog": "30000",
        "maxLines": "2000",
        "customHighlightTerms": "error",
        "logRefresh": "false",
        "autoHighlight": "true",
        "jumpOnSearch": "false",
        "liveSearch": "false"
    },
    "preferences": {
        "sitetitle": "Logarr",
        "siteurl": "http:\/\/localhost\/logarr",
        "updateBranch": "alpha",
        "timezone": "Etc\/GMT",
        "timestandard": "False",
        "language": "EN"
    },
    "authentication": {
        "setupEnabled": "true",
        "settingsEnabled": "true",
        "logsEnabled": "true"
    },
    "logs": [
        {
            "logTitle": "Plex",
            "path": "//var//log//loggarlogs//plex//Logs//Plex Media Server.log",
            "enabled": "Yes",
            "category": "Radarr"
        },
        {
            "logTitle": "Logarr",
            "path": "..//data//logs//logarr.log",
            "enabled": "Yes",
            "category": "Logarr"

        },
        {
            "logTitle": "Sonarr",
            "path": "//var//log//loggarlogs//sonarr//logs//sonarr.txt",
            "enabled": "Yes",
            "category": "Sonarr"
        },
        {
            "logTitle": "Radarr",
            "path": "//var//log//loggarlogs//radarr//logs//radarr.txt",
            "enabled": "Yes",
            "category": "Radarr"
        }
    ]
}