pve task log (history for backup)

chamseddine

Active Member
Mar 23, 2018
13
0
41
48
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....