pve task log (history for backup)

chamseddine

Active Member
Mar 23, 2018
13
0
41
47
Tunisie
hi,

i need a regular backup (clone or dump) of pve task log

same log as in live task or cluster journal or log like /var/log/pve/tasks/index

but style web like in https://ip:8006 menu -->Datacenter/"NODE"/system/syslog ( live /calendar)

so how ? (script or something)

please Mr proxmox can you add it in next proxmox ? :cool:

thanks.
 
Hi,

we already expose cluster/task logs via the API [1, 2]. You can use the pvesh tool to access it:

Code:
# pvesh get /cluster/tasks --output-format=json-pretty
[
   {
      "endtime" : 1673335240,
      "id" : "",
      "node" : "hostname",
      "saved" : "1",
      "starttime" : 1673335240,
      "status" : "OK",
      "type" : "startall",
      "upid" : "UPID:hostname:00001486:0000055C:63BD11C8:startall::root@pam:",
      "user" : "root@pam"
   },
   ...
]


[1] https://pve.proxmox.com/pve-docs/api-viewer/index.html#/cluster/log
[2] https://pve.proxmox.com/pve-docs/api-viewer/index.html#/cluster/tasks
 
  • Like
Reactions: chamseddine
Hi,

we already expose cluster/task logs via the API [1, 2]. You can use the pvesh tool to access it:

Code:
# pvesh get /cluster/tasks --output-format=json-pretty
[
   {
      "endtime" : 1673335240,
      "id" : "",
      "node" : "hostname",
      "saved" : "1",
      "starttime" : 1673335240,
      "status" : "OK",
      "type" : "startall",
      "upid" : "UPID:hostname:00001486:0000055C:63BD11C8:startall::root@pam:",
      "user" : "root@pam"
   },
   ...
]


[1] https://pve.proxmox.com/pve-docs/api-viewer/index.html#/cluster/log
[2] https://pve.proxmox.com/pve-docs/api-viewer/index.html#/cluster/tasks
thanks, ill try to get it in web page....
 

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!