@@ -81,16 +81,13 @@ Each user activity log entry includes:
8181{
8282 "timestamp" : " 2024-01-15T14:30:45.123456Z" ,
8383 "log_type" : " audit" ,
84- "action " : " user_login" ,
84+ "event_name " : " user_login" ,
8585 "success" : true ,
86- "user" : {
87- "id" : " usr_abcdef1234567890" ,
88- "email" : " john.doe@example.com" ,
89- "name" : " John Doe"
90- },
86+ "user_email" : " john.doe@example.com" ,
87+ "user_name" : " John Doe" ,
9188 "env_id" : " env_7890123456abcdef" ,
9289 "env_name" : " Production" ,
93- "data " : {
90+ "event_content " : {
9491 "additional" : " context"
9592 }
9693}
@@ -104,11 +101,11 @@ Each system log entry includes:
104101{
105102 "timestamp" : " 2024-01-15T14:30:45.123456Z" ,
106103 "log_type" : " system" ,
107- "action " : " dbt_data_sync_completed" ,
104+ "event_name " : " dbt_data_sync_completed" ,
108105 "success" : true ,
109106 "env_id" : " env_7890123456abcdef" ,
110107 "env_name" : " Production" ,
111- "data " : {
108+ "event_content " : {
112109 "environment_id" : " env_789" ,
113110 "environment_name" : " Production"
114111 }
@@ -119,15 +116,13 @@ Each system log entry includes:
119116
120117- ` timestamp ` : ISO 8601 timestamp of the event (UTC)
121118- ` log_type ` : Either ` "audit" ` for user activity logs or ` "system" ` for system logs
122- - ` action ` : The specific action that was performed (e.g., ` user_login ` , ` create_test ` , ` dbt_data_sync_completed ` )
119+ - ` event_name ` : The specific action that was performed (e.g., ` user_login ` , ` create_test ` , ` dbt_data_sync_completed ` )
123120- ` success ` : Boolean indicating whether the action completed successfully
124- - ` user ` : User information (only present in audit logs)
125- - ` id ` : User ID
126- - ` email ` : User email address
127- - ` name ` : User display name
128- - ` env_id ` : Environment identifier (empty string for account-level actions)
129- - ` env_name ` : Environment name (empty string for account-level actions)
130- - ` data ` : Additional context-specific information as a JSON object
121+ - ` user_email ` : User email address
122+ - ` user_name ` : User display name
123+ - ` env_id ` : Environment identifier (empty for account-level actions)
124+ - ` env_name ` : Environment name (empty for account-level actions)
125+ - ` event_content ` : Additional context-specific information as a JSON object
131126
132127<Frame >
133128 <div className = " dark:bg-white rounded-md p-4" >
@@ -154,8 +149,8 @@ source="elementary-cloud" log_type="audit"
154149source="elementary-cloud" log_type="system"
155150
156151# Search for specific actions
157- source="elementary-cloud" action ="user_login"
158- source="elementary-cloud" action ="dbt_data_sync_completed"
152+ source="elementary-cloud" event_name ="user_login"
153+ source="elementary-cloud" event_name ="dbt_data_sync_completed"
159154
160155# Filter by environment
161156source="elementary-cloud" env_name="Production"
@@ -164,7 +159,7 @@ source="elementary-cloud" env_name="Production"
164159source="elementary-cloud" success=false
165160
166161# Search by user email
167- source="elementary-cloud" user.email ="john.doe@example.com"
162+ source="elementary-cloud" user_email ="john.doe@example.com"
168163```
169164
170165## Disabling Log Streaming
0 commit comments