Extending /etc/pve/.clusterlog

holr

Well-Known Member
Jan 4, 2019
33
1
48
54
Hello,
I am trying to create an audit trail spanning a couple of months of user logins into proxmox. I believe /etc/pve/.clusterlog is the best source of information, but by default it only stores the last 50 entries. Is there any way, short of running a cron job to archive every so often, to extend the number of entries or archive the file sensibly?

Thank you!
 
Without putting to much tougth into it you might run `tail -f /etc/pve/.clusterlog >> path_to_your_output_file`... But there might be better ways
 
each node keeps a much bigger archive of tasks that have run on it, see "pvenode task list" and the "GET /api2/json/nodes/{node}/tasks" API endpoint (and its children).
 
  • Like
Reactions: Chris
Without putting to much tougth into it you might run `tail -f /etc/pve/.clusterlog >> path_to_your_output_file`... But there might be better ways
One "better way" is to use -F instead of -f in the case in order to make it "rotation-proof" :)
 
  • Like
Reactions: Chris

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!