This is not possible, since the “Action Details” part of the log is not propagates to AWS EventBridge via the log stream.
This is the Auth0 log event:
Raw
{
"date": "2023-05-16T08:48:13.623Z",
"type": "s",
"connection": "Username-Password-Authentication",
"connection_id": "con_IECH*******4YXEz",
"client_id": "1Co1y06xBtw*************p0r4Jl",
"client_name": "Name Of Client",
"ip": "194.17.253.84",
"user_agent": "Electron 18.3.5 / Windows 10.0.0",
"details": {
"prompts": [
{
"name": "prompt-authenticate",
"completedAt": 1684226892739,
"connection": "Username-Password-Authentication",
"connection_id": "con_IECHjeYdh9w4YXEz",
"strategy": "auth0",
"identity": "645396d8dad598694bc7cb81",
"stats": {
"loginsCount": 3
},
"elapsedTime": null
},
{
"name": "login",
"flow": "universal-login",
"initiatedAt": 1684226879953,
"completedAt": 1684226892758,
"user_id": "auth0|645396d8dad598694bc7cb81",
"user_name": "*******+tester@gmail.com",
"timers": {
"rules": 563
},
"elapsedTime": 12805
}
],
"initiatedAt": 1684226879944,
"completedAt": 1684226893621,
"elapsedTime": 13677,
"actions": {
"executions": [
"EpNQOyW-TyGyS1071DNLuzIwMjMwNTE2"
]
},
"session_id": "snRXFq0OY5r1ka_Ngq5kohdXBYRuiQrT",
"stats": {
"loginsCount": 3
}
},
"hostname": "login.example.dev",
"user_id": "auth0|645396d8dad598694bc7cb81",
"user_name": "*******+tester@gmail.com",
"strategy": "auth0",
"strategy_type": "database",
"log_id": "90020230516084817232013000000000000001223372037055289981",
"_id": "90020230516084817232013000000000000001223372037055289981",
"isMobile": false,
"id": "90020230516084817232013000000000000001223372037055289981",
"description": "Successful login"
}
Action Details
{
"action_name": "extend-jwt",
"response": {
"logs": "crm login: \"auth0|645396d8dad598694bc7cb81\"\nUser auth0|645396d8dad598694bc7cb81 was not found in CRM systemn",
"stats": {
"total_request_duration_ms": 550,
"total_runtime_execution_duration_ms": 548,
"runtime_processing_duration_ms": 5,
"action_duration_ms": 543,
"boot_duration_ms": 5,
"network_duration_ms": 2
}
},
"started_at": "2023-05-16T08:48:13.055241248Z",
"ended_at": "2023-05-16T08:48:13.606271743Z"
}
And the received log in AWS EventBridge:
{
"version": "0",
"id": "0893dbc8-5706-c40e-1f9f-12099312beae",
"detail-type": "Auth0 log",
"source": "aws.partner/auth0.com/dev-28t3w**********6-2da99e3a-a482-42b6-ba7a-ee8387815482/auth0.logs",
"account": "1781******14",
"time": "2023-05-16T08:48:21Z",
"region": "eu-west-1",
"resources": [],
"detail": {
"log_id": "90020230516084817232013000000000000001223372037055289981",
"data": {
"date": "2023-05-16T08:48:13.623Z",
"type": "s",
"connection": "Username-Password-Authentication",
"connection_id": "con_IE*********4YXEz",
"client_id": "1Co1y0********************r4Jl",
"client_name": "TheClientName",
"ip": "**********",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Postman/10.13.0 Chrome/100.0.4896.160 Electron/18.3.5 Safari/537.36",
"details": {
"prompts": [
{
"name": "prompt-authenticate",
"completedAt": 1684226892739,
"connection": "Username-Password-Authentication",
"connection_id": "con_IE*******YXEz",
"strategy": "auth0",
"identity": "6453**************81",
"stats": {
"loginsCount": 3
},
"elapsedTime": null
},
{
"name": "login",
"flow": "universal-login",
"initiatedAt": 1684226879953,
"completedAt": 1684226892758,
"user_id": "auth0|645396d8dad598694bc7cb81",
"user_name": "*********+tester@gmail.com",
"timers": {
"rules": 563
},
"elapsedTime": 12805
}
],
"initiatedAt": 1684226879944,
"completedAt": 1684226893621,
"elapsedTime": 13677,
"actions": {
"executions": [
"EpNQOyW-TyGyS1071DNLuzIwMjMwNTE2"
]
},
"session_id": "snRXFq0O**********iQrT",
"stats": {
"loginsCount": 3
}
},
"hostname": "login.example.dev",
"user_id": "auth0|645396d8dad598694bc7cb81",
"user_name": "*********+tester@gmail.com",
"strategy": "auth0",
"strategy_type": "database",
"log_id": "90020230516084817232013000000000000001223372037055289981"
}
}
}