type.inbound
and any(body.links,
.href_url.domain.domain == "l.work.meta.com"
// the redirect field
and strings.icontains(.href_url.query_params, "u=")
and regex.icontains(.href_url.query_params,
'u=(?:https?)?(?:(?:%3a|\:)?(?:\/|%2f){2})?youtube\.com[^\&]*\/+logout.*continue='
)
)
Playground
Test against your own EMLs or sample data.