05-20-2024, 03:26 PM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: May 2024
Device: Kindle Oasis
|
Calibre Content Server Logging
I am running Calibre Content Server on an Ubuntu VM and recently enabled logging to get a better idea of what my users are accessing/reading/downloading and how many users are actually hitting the library. Unfortunately, both the log and access-log are only showing when the server is stopped/started and no actual info beyond that. Is there a log level option or is this a limitation regarding using systemctl to run Calibre server?
|
05-20-2024, 11:27 PM | #2 |
creator of calibre
Posts: 44,546
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You enabled logging how?
|
Advert | |
|
05-20-2024, 11:32 PM | #3 | |
Junior Member
Posts: 3
Karma: 10
Join Date: May 2024
Device: Kindle Oasis
|
I enabled logging by adding "--log=/home/michel/calibre_logs/calibre_log --access-log=/home/michel/calibre_logs/calibre_access_logs" to my systemctl service file. (full file below)
Quote:
|
|
05-20-2024, 11:59 PM | #4 |
creator of calibre
Posts: 44,546
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Looks fine to me, make sure the logging directory exists and whatever uid/gid you are running the server as has write permissions for it. Or just log to /dev/stdout with --access-log=/dev/stdout and then use systemd journalctl to view the log.
|
05-21-2024, 10:35 AM | #5 | |
Junior Member
Posts: 3
Karma: 10
Join Date: May 2024
Device: Kindle Oasis
|
Confirmed that they both exist and are writable. Unfortunately, the access log only shows my public IP as the incoming connection (likely due to using Cloudflare Tunnel to access). However, the main log file only shows this:
Quote:
|
|
Advert | |
|
05-21-2024, 11:05 AM | #6 |
creator of calibre
Posts: 44,546
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There is no logging of what book sare viewed downloaded as such. You can grep for the endpoints used by such requests and correlate them with book ids in the db.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Best device for accessing Calibre as a content server only / Best way to add content | yelt | Calibre | 1 | 10-01-2020 10:53 PM |
calibre-server: some logging thoughts ... | DrChiper | Calibre | 1 | 07-14-2017 03:23 PM |
Turning off calibre-server's access and error logging? | Geremia | Development | 3 | 09-15-2016 10:40 PM |
IE11, problem logging in to calibre server | tbergman | Calibre | 7 | 09-28-2013 10:37 AM |
500 Internal Server Error accessing content server Calibre 0.8.8 | DaddyO57 | Calibre | 1 | 07-20-2012 07:08 PM |