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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!