Cluster Logs Retrieval from Proxmox API

proxmonxster

New Member
Dec 16, 2021
4
1
3
24
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! :)