Jump to content

Where are Emby logs defined? I want to move them


Recommended Posts

Posted

Hi,

I moved everything else (see pic).  Where in the Emby management interface do I tell Emby where the logs are located?  I want to move them to other drive.

Thanks

 

emby-logs.png

Posted

If no screen option, which config file?  I'll manually edit it, if I have to.

Posted

Hi, there is currently no option to configure this, but it's possible for future updates. thanks.

Posted
6 minutes ago, Luke said:

Hi, there is currently no option to configure this, but it's possible for future updates. thanks.

Thanks, I guess they stay put then.

Posted

If you are desperate to move them, then you can use a symbolic link to point them to wherever you like .. 

  • Like 2
Posted

No such thing as symbolic link in windoze.  That's fine though, they can stay put.  Emby already rotates them.

 

  • Confused 2
Posted
Just now, Bingie said:

No such thing as symbolic link in windoze.  That's fine though, they can stay put.  Emby already rotates them.

 

mklink ..

  • Like 2
Posted

Nobody uses log files anyways, they just come here and complain :P

  • Haha 1
Posted
3 hours ago, rbjtech said:

mklink ..

Yea, windows is pretty flexible with symbolic links. You can do soft, hard or junctions.
I used to use them a lot in library management when I would run both Plex and Emby together as I could make the media folders look different to each platform.
IE. I could take Plex's BIF files moved to the media folder and then linked back so Plex didn't know they were moved.  Other things like that too.

  • Like 2
GrimReaper
Posted (edited)

I use junctions on Windows to RAMdisk for several programs with daily dumps on SSD, Emby's cache folder and dbs being one of them. 

Edited by GrimReaper
Typo
  • Like 1
Posted

I was thinking of trying this on DSM 7 in Synology to "move" the Emby Log folder to a location I can access through File Station or better yet from my PC over the network.
It's a paint to have to use SSH all the time to access log files when testing things. :)

Posted (edited)

Okay, I think I got this right.

1.  shutdown emby server

2. create logs directory on destination (d: in my case)

3. Do these commands one at a time, double checking.  I opened 2 command windows, type command in one window, verify in the other window.

cd %APPDATA%\Emby-Server\programdata
attrib -r logs
move logs logs-old
mklink /J logs d:logs
move logs-old\*.* .\logs

looks like this (for me)

C:\Users\Emby\AppData\Roaming\Emby-Server\programdata>dir
 Volume in drive C has no label.
 Volume Serial Number is A0A3-F052

 Directory of C:\Users\Emby\AppData\Roaming\Emby-Server\programdata

09/22/2021  10:23 AM    <DIR>          .
09/22/2021  10:23 AM    <DIR>          ..
09/21/2021  10:34 AM    <DIR>          cache
09/21/2021  10:34 AM    <DIR>          config
09/21/2021  09:47 PM    <DIR>          data
09/22/2021  10:23 AM    <JUNCTION>     logs [D:\Emby\Data\logs]
09/22/2021  10:24 AM    <DIR>          logs-old
09/21/2021  10:34 AM    <DIR>          metadata
09/21/2021  06:41 PM    <DIR>          plugins
09/21/2021  10:34 AM    <DIR>          root
               0 File(s)              0 bytes
              10 Dir(s)  94,975,049,728 bytes free

C:\Users\Emby\AppData\Roaming\Emby-Server\programdata>dir d:
 Volume in drive D is Emby
 Volume Serial Number is D6B1-AE6D

 Directory of D:\Emby\Data

09/22/2021  10:23 AM    <DIR>          .
09/22/2021  10:23 AM    <DIR>          ..
09/15/2021  07:16 PM    <DIR>          cache
09/22/2021  10:24 AM    <DIR>          logs
09/21/2021  09:22 AM    <DIR>          metadata
09/22/2021  06:28 AM    <DIR>          transcoding-temp
               0 File(s)              0 bytes
               6 Dir(s)  6,417,925,107,712 bytes free

restart emby server

do something to cause a new log entry (like connect to emby server dashboard from a browser)

D:\Emby\Data\logs>dir embyserver.txt
 Volume in drive D is Emby
 Volume Serial Number is D6B1-AE6D

 Directory of D:\Emby\Data\logs

09/22/2021  10:30 AM            38,890 embyserver.txt
               1 File(s)         38,890 bytes
               0 Dir(s)  6,417,924,759,552 bytes free

The time is updated after the change, so must be working.

D:\Emby\Data\logs>type embyserver.txt

Last line should show connection...

2021-09-22 10:30:57.761 Info Server: http/1.1 Response 200 to 192.168.0.121. Time: 26ms. http://192.168.0.221:8096/emby/Users/ad609edd9e2f42c98d88a78bd7f990eb/Views?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=064d9dc5-48ef-43f5-b7cd-be2cec1b330a&X-Emby-Client-Version=4.6.4.0

Looks good to me!  :)

 

Edited by Bingie
  • Like 2
Posted

Looks good 👍 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...