How to log http access in PBS

aldomoro

New Member
Feb 1, 2023
12
1
3
Hello

Would you anybody know how to enable http loging I can monitor who and when log in via web interface in PBS?
In default only ssh access is logged.

Thank you
 
take a peek in /var/log/proxmox-backup/api/
 
take a peek in /var/log/proxmox-backup/api/
Thank you Fabian

I have found everything what I need in /var/log/proxmox-backup/api/auth.log
Would you need how to make it I see content of this auth.log also in /var/log/syslog?

Thanks
 
Meanwhile I got it

I edited /etc/rsyslog.conf

I put this text to module section
module(load="imfile" PollingInterval="10")

And this to the rule section
# File 1
input(type="imfile" File="/var/log/proxmox-backup/api/auth.log"
Tag="tag1"
StateFile="/var/log/proxmox-backup/api/state.log"
Severity="notice"
Facility="local0")

Then systemctl restart rsyslog