Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Server

Notices

Reply
 
Thread Tools Search this Thread
Old 05-20-2024, 02:26 PM   #1
Tarmedprogrammer
Junior Member
Tarmedprogrammer began at the beginning.
 
Tarmedprogrammer's Avatar
 
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?
Tarmedprogrammer is offline   Reply With Quote
Old 05-20-2024, 10:27 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,996
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You enabled logging how?
kovidgoyal is offline   Reply With Quote
Advert
Old 05-20-2024, 10:32 PM   #3
Tarmedprogrammer
Junior Member
Tarmedprogrammer began at the beginning.
 
Tarmedprogrammer's Avatar
 
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:
│ File: /etc/systemd/system/calibre-server.service
───────┼────────────────────────────────────────── ────────────────────────────────────────────────── ────────────────────────────────────────────────── ────────────────────────────────────────────────── ──────────
1 │ [Unit]
2 │ Description=Calibre Server
3 │ After=network.target
4 │
5 │ [Service]
6 │ Type=simple
7 │ User=michel
8 │ Group=michel
9 │ ExecStart=/opt/calibre/calibre-server /mnt/Hoard/Library/Adult /mnt/Hoard/Library/Fiction /mnt/Hoard/Library/Non-Fiction /mnt/Hoard/Library/WitchcraftAndWicca /mnt/Hoard/Library/DungeonsAndDragons /mnt
│ /Hoard/Library/YoungAdultFiction /mnt/Hoard/Library/Childrens --enable-local-write --log=/home/michel/calibre_logs/calibre_log --access-log=/home/michel/calibre_logs/calibre_access_logs
10 │
11 │ [Install]
12 │ WantedBy=multi-user.target
Tarmedprogrammer is offline   Reply With Quote
Old 05-20-2024, 10:59 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,996
Karma: 22669822
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.
kovidgoyal is offline   Reply With Quote
Old 05-21-2024, 09:35 AM   #5
Tarmedprogrammer
Junior Member
Tarmedprogrammer began at the beginning.
 
Tarmedprogrammer's Avatar
 
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:
calibre server listening on 0.0.0.0:8080
OPDS feeds advertised via BonJour at: 192.168.99.161 port: 8080
Is there a way to get an output from either of those logs (possibly with grep) of what books are being viewed/downloaded?
Tarmedprogrammer is offline   Reply With Quote
Advert
Old 05-21-2024, 10:05 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,996
Karma: 22669822
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.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

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 09:53 PM
calibre-server: some logging thoughts ... DrChiper Calibre 1 07-14-2017 02:23 PM
Turning off calibre-server's access and error logging? Geremia Development 3 09-15-2016 09:40 PM
IE11, problem logging in to calibre server tbergman Calibre 7 09-28-2013 09:37 AM
500 Internal Server Error accessing content server Calibre 0.8.8 DaddyO57 Calibre 1 07-20-2012 06:08 PM


All times are GMT -4. The time now is 06:50 AM.


MobileRead.com is a privately owned, operated and funded community.