Cluster Logs Retrieval from Proxmox API

proxmonxster

New Member
Dec 16, 2021
4
1
3
23
Hello! I'm new to proxmox and I'm trying to get the cluster logs for the web application I am currently developing. My question is, why is there no "severity" column when getting the cluster logs from the proxmox API and is there a way to possibly get it? Thank you so much.
 
  • Like
Reactions: camilleK
we do not log any 'severity' besides in the final status of the log, it's either 'TASK OK', begins with 'WARNING' or otherwise is an error
 
  • Like
Reactions: camilleK
oh i just noticed (thanks to a hint from a colleague) that you meant the cluster wide log (i was thinking the Task logs)

in that case the severity is the 'pri' column, which ranges from 0 (panic) to 7 (debug)
quote from the gui source code:

Code:
    log_severity_hash: {
        0: "panic",    
        1: "alert",    
        2: "critical", 
        3: "error",    
        4: "warning",  
        5: "notice",   
        6: "info",     
        7: "debug",    
    },
 
  • Like
Reactions: camilleK
oh i just noticed (thanks to a hint from a colleague) that you meant the cluster wide log (i was thinking the Task logs)

in that case the severity is the 'pri' column, which ranges from 0 (panic) to 7 (debug)
quote from the gui source code:

Code:
    log_severity_hash: {
        0: "panic",  
        1: "alert",  
        2: "critical",
        3: "error",  
        4: "warning",
        5: "notice", 
        6: "info",   
        7: "debug",  
    },



thanks for this so much! means a lot! :)
 

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!