Tuomas Heiskanen

05/05/2023, 1:10 PM
What’s the easiest way to fetch the logs of a flow run, with the intention of sending them to another application? I’ve searched far and wide, but there doesn’t seem to be any docs or conclusive discussion on this 🤔

Sahil Rangwala

05/05/2023, 7:15 PM
There are a few ways you can stream logs to a specific file, you can use this method to help send to another application as well.

Ryan Peden

05/05/2023, 11:37 PM
@Tuomas Heiskanen You might also find the 'Read Logs' API endpoint useful: Although that link is in the Prefect Cloud docs, the format of the API call is the same if you are running your own Prefect server. The only difference in that case is the endpoint would just be
instead of including the account and workspace IDs.

Tuomas Heiskanen

05/07/2023, 7:27 PM
Thank you very much Ryan, that was exactly what I was looking for 🙏
👍 1