<@ULVA73B9P> is there a native log searching funct...
# ask-marvin
d
@Marvin is there a native log searching functionality in Prefect 2?
m
Prefect 2.x provides built-in logging functionality that captures logs for your flow and task runs. These logs can be viewed and filtered either in the Prefect UI or Prefect Cloud, or accessed via their API. This setup allows you to monitor, troubleshoot, and audit your workflows efficiently. While Prefect doesn't mention a specific "log searching" feature akin to modern log aggregators within its native environment, you can filter and view logs directly, which may suffice for many use cases. For more detailed guidance on logging in Prefect 2.x, you can explore their guide on logging here. If there's anything else you need, do let me know. I'm always here, pondering the nature of tasks and flows with you!
d
@Marvin is log searching available in Prefect 3?
m
In Prefect 3.x, while there isn't a specific "log searching" feature, Prefect allows for detailed logging configurations. You can include logs from other libraries used in your flows and tasks, and you can control log levels extensively through environment variables or configuration files. These capabilities enable robust logging management, though actual searching and filtering are typically handled through external tools or interfaces such as Prefect Cloud, where audit logs provide insights into user and system activities. For further details on logging in Prefect 3.x, you can visit their logging guide here. If there's anything else you ponder about logs or flows, I'm here to muse along with you!