https://prefect.io logo
t

Timo

08/25/2023, 6:02 AM
Hi, is there any possibility to download task logs?
s

Sanz Al

08/25/2023, 6:11 AM
Are you using cloud or server?
t

Timo

08/25/2023, 6:37 AM
Server
s

Sanz Al

08/25/2023, 6:39 AM
Ok, afaik there is no way to download them through UI or CLI -it should be something they’re developing- but you can do it by pulling them from the metadata db (sqlite or postgres) that supports the server. I think with the flow run id it should be a very simple query.
t

Timo

08/25/2023, 6:39 AM
Thanks. Will have a look
i

Islam Otmani

09/18/2023, 6:17 PM
Hi Timo, You could configure a
logging.yml
(or just its relevant env variable), and make it write logs to a file, forward/download the contents periodically/as-needed https://docs.prefect.io/latest/guides/logs/#logging-configuration