https://prefect.io logo
i

Ismail Cenik

06/08/2021, 10:29 PM
Hello, is it possible to extract Prefect Cloud UI LOGS and show them in our dashboard for observability? What is the best practice here?
z

Zach Schumacher

06/08/2021, 11:21 PM
I’d think you’d probably just want to inherit from the prefect logger and add a logging config that dumps to wherever you need
tho it does look like you can query logs via the graph API
something like this should do it
Copy code
query { 
  flow_run_by_pk(id:"your flow id"),
  { 
    logs {
      id,
      timestamp,
      level,
      message
    }
  }
}
👍 1
i

Ismail Cenik

06/09/2021, 4:33 PM
Thank you
2 Views