Logging on to the Alibaba Cloud Management Console with an Alibaba Cloud account generates a logon event (ConsoleSignin). This topic shows examples of logon events and describes their key fields.
Query criteria
To query Alibaba Cloud account logon events, set the filter to Event Type > ConsoleSignin. For detailed instructions, see Query events in the ActionTrail console.
Example 1: Logon event without MFA
The following example shows an event logged when the Alibaba Cloud account 151266687691**** logs on to the console at 08:00:00 on January 1, 2021 (UTC+8) without multi-factor authentication (MFA).
{
"eventId": "2546c4b7-6b56-403e-97d3-500d8d29****",
"eventVersion": 1,
"eventSource": "http://account.alibabacloud.com/login/login_aliyun.htm",
"sourceIpAddress": "192.168.XX.XX",
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/19A5307g Ariver/1.1.0 AliApp(AP/10.2.28.6000) Nebula WK RVKType(1) AlipayDefined(nt:WIFI,ws:390|780|3.0) AlipayClient/10.2.28.6000 Language/zh-Hans Region/CN NebulaX/1.0.0",
"eventType": "ConsoleSignin",
"userIdentity": {
"accountId": "151266687691****",
"principalId": "151266687691****",
"type": "root-account",
"userName": "root"
},
"serviceName": "AasCustomer",
"additionalEventData": {
"loginAccount": "Alice",
"isMFAChecked": "false"
},
"requestId": "2546c4b7-6b56-403e-97d3-500d8d2****",
"eventTime": "2021-01-01T00:00:00Z",
"isGlobal": true,
"acsRegion": "cn-hangzhou",
"eventName": "ConsoleSignin"
}The key fields in this event are as follows:
eventName: The name of the event. A value ofConsoleSigninindicates a console logon event.userIdentity.accountId: The Alibaba Cloud account ID of the requester.userIdentity.type: The identity type of the requester. A value ofroot-accountindicates an Alibaba Cloud account.eventTime: The UTC time when the event occurred. The value2021-01-01T00:00:00Zcorresponds to 08:00:00 on January 1, 2021 (UTC+8).additionalEventData.isMFAChecked: Specifies if multi-factor authentication (MFA) was used. A value offalseindicates it was not.
Example 2: Logon event with MFA
The following example shows an event logged when the Alibaba Cloud account 151266687691**** logs on to the console at 08:00:00 on January 1, 2021 (UTC+8) using multi-factor authentication (MFA).
{
"eventId": "2546c4b7-6b56-403e-97d3-500d8d29****",
"eventVersion": 1,
"eventSource": "http://account.aliyun.com/account_init/skip2Login.htm",
"sourceIpAddress": "192.168.XX.XX",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36",
"eventType": "ConsoleSignin",
"userIdentity": {
"accountId": "151266687691****",
"principalId": "151266687691****",
"type": "root-account",
"userName": "root"
},
"serviceName": "AasCustomer",
"additionalEventData": {
"loginAccount": "Alice",
"isMFAChecked": "true"
},
"requestId": "2546c4b7-6b56-403e-97d3-500d8d29****",
"eventTime": "2021-01-01T00:00:00Z",
"isGlobal": true,
"acsRegion": "cn-hangzhou",
"eventName": "ConsoleSignin"
}The key fields in this event are as follows:
eventName: The name of the event. A value ofConsoleSigninindicates a console logon event.userIdentity.accountId: The Alibaba Cloud account ID of the requester.userIdentity.type: The identity type of the requester. A value ofroot-accountindicates an Alibaba Cloud account.additionalEventData.isMFAChecked: Specifies if multi-factor authentication (MFA) was used. A value oftrueindicates it was.eventTime: The UTC time when the event occurred. The value2021-01-01T00:00:00Zcorresponds to 08:00:00 on January 1, 2021 (UTC+8).
Example 3: Failed logon event
The following example shows an event logged when a logon attempt for the Alibaba Cloud account 151266687691**** fails at 08:00:00 on January 1, 2021 (UTC+8).
{
"eventId": "6da1622f55a9c5d7a0c4f462fd81****",
"eventVersion": 1,
"errorMessage": "Invalid password",
"eventSource": "https://passport.aliyun.com/mini_login.htm?lang=zh_CN&appName=aliyun&appEntrance=new_aliyun_v2&styleType=vertical&bizParams=¬LoadSsoView=true¬KeepLogin=true&isMobile=false®Url=https%3A%2F%2Faccount.aliyun.com%2Fregister%2Fqr_register.htm%3Foauth_callback%3Dhttps%253A%252F%252Factiontrail.console.alibabacloud.com%252Fcn-hangzhou%252Fevent-list&returnUrl=https%3A%2F%2Faccount.aliyun.com%2Flogin%2Flogin_aliyun.htm%3Foauth_callback%3Dhttps%253A%252F%252Factiontrail.console.alibabacloud.com%252Fcn-hangzhou%252Fevent-list&cssUrl=https%3A%2F%2Fg.alicdn.com%2Fdawn%2Faliyun-account-styles%2F0.0.1%2Flogin-embedder.css&pageversion=v1&rnd=0.16498232922940215",
"errorCode": "login_illegal_password",
"sourceIpAddress": "192.168.XX.XX",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36",
"eventRW": "Write",
"eventType": "ApiCall",
"userIdentity": {
"accountId": "151266687691****",
"principalId": "151266687691****",
"type": "root-account",
"userName": "root"
},
"serviceName": "AasCustomer",
"requestId": "6da1622f55a9c5d7a0c4f462fd81****",
"eventTime": "2021-01-01T00:00:00Z",
"isGlobal": true,
"acsRegion": "cn-hangzhou",
"eventName": "ConsoleSignin"
}The key fields in this event are as follows:
eventName: The name of the event. A value ofConsoleSigninindicates a console logon event.userIdentity.accountId: The Alibaba Cloud account ID of the requester.userIdentity.type: The identity type of the requester. A value ofroot-accountindicates an Alibaba Cloud account.eventTime: The UTC time when the event occurred. The value2021-01-01T00:00:00Zcorresponds to 08:00:00 on January 1, 2021 (UTC+8).errorCode: The error code for the failed attempt. A value oflogin_illegal_passwordindicates an invalid password.errorMessage: The error message that describes why the logon failed. The valueInvalid passwordindicates that an incorrect password was provided.