Hello Team, we're working on setting up an automat...
# ask-community
y
Hello Team, we're working on setting up an automation that has a customer event trigger. I want to trigger that automation based on the flow run logs. If the log error partial matches with a string "The object is not found", the automation needs to be triggered. I tried many ways with the following match_related value, but it's not working. Is it possible to trigger the automation based on the flow run log error?
Copy code
match_related = {
            "prefect.resource.role": "log", #, 
            "prefect.log.error": [ "*The object is not found*"]
        },
The current documentation doesn't cover that part. Can I use "log" as the
prefect.resource.role
in the
match_related
conditions?