https://prefect.io logo
Title
a

andres aava

01/26/2023, 7:04 AM
Hey! Is there any way to download logs to .txt or send them to my own database directly at the moment with Prefect 2.0 Cloud? I found this (from this prefect-ui channel) https://github.com/PrefectHQ/prefect/issues/7378 And this about storing logs (when you host own prefect) https://docs.prefect.io/concepts/database/ Whenever I try CTRL+F it won't search the whole logging pane under task run (attached screenshot) as it is quite a long log. Scrolling through to find the error isn't a solution too.
t

Tim Galvin

01/26/2023, 7:29 AM
Through the UI I do not think that there is. But if you have the flowrun id you can do something like
prefect flow-run logs ID
, where
ID
is the flow run of interest
a

andres aava

01/26/2023, 9:23 AM
i tried
prefect flow-run inspect ID
🙌 1
but cant find any command / way to get the logs.
t

Tim Galvin

01/26/2023, 1:39 PM
That is not what I suggested
If you have a recent version of prefect that will be a
prefect flow-run logs
command
you can use
prefect flow-run --help
to examine the available commands and their options
a

andres aava

01/26/2023, 1:44 PM
ah ok, I guess i need to upgrade version
as —help didnt show me anything interesting too
yep worked
thx 🙏