Event types always logging

Hi.
Im running a Go program to listen on incus events, I would like to get operation and lifecycle but everything seems to be type=logging . reboot or start instance shouldn’t trigger a lifecycle event ?
my incus cluster is on version 6.2

Blockquote
{
“type”: “logging”,
“timestamp”: “2024-09-13T01:06:28.916374223Z”,
“metadata”: {
“message”: “New operation”,
“level”: “debug”,
“context”: {
“class”: “task”,
“description”: “Starting instance”,
“operation”: “251f3ba5-9d8f-49ef-9d70-9bd9d8c72c71”,
“project”: “mmtdev”
}
},
“location”: “MicroGPU1”
}
{
“type”: “logging”,
“timestamp”: “2024-09-13T01:06:28.917390162Z”,
“metadata”: {
“message”: “Failure for operation”,
“level”: “debug”,
“context”: {
“class”: “task”,
“description”: “Starting instance”,
“err”: “The instance is already running”,
“operation”: “251f3ba5-9d8f-49ef-9d70-9bd9d8c72c71”,
“project”: “mmtdev”
}
},
“location”: “MicroGPU1”
}
{
“type”: “logging”,
“timestamp”: “2024-09-13T01:06:28.916763729Z”,
“metadata”: {
“message”: “Start started”,
“level”: “debug”,
“context”: {
“instance”: “mmtdev-1725341438257”,
“instanceType”: “virtual-machine”,
“project”: “mmtdev”,
“stateful”: “false”
}
},
“location”: “MicroGPU1”
}
{
“type”: “logging”,
“timestamp”: “2024-09-13T01:06:28.916545781Z”,
“metadata”: {
“message”: “Started operation”,
“level”: “debug”,
“context”: {
“class”: “task”,
“description”: “Starting instance”,
“operation”: “251f3ba5-9d8f-49ef-9d70-9bd9d8c72c71”,
“project”: “mmtdev”
}
},
“location”: “MicroGPU1”
}
{
“type”: “logging”,
“timestamp”: “2024-09-13T01:06:28.917347743Z”,
“metadata”: {
“message”: “Start finished”,
“level”: “debug”,
“context”: {
“instance”: “mmtdev-1725341438257”,
“instanceType”: “virtual-machine”,
“project”: “mmtdev”,
“stateful”: “false”
}
},
“location”: “MicroGPU1”
}

How did you setup the listener?

/1.0/events?type=lifecycle should get you what you want

Hi Stephan,

thanks for your reply.
as soon as I add the filter “operation” or “lifecycle” , I dont see any more events and as you can see in the logs, there seems to be as “type”: “logging” events for operation. Im using v6.2