Searching for Logs

Last updated: 2020-10-22 09:34:15

1. API Description

Domain name for API request: cloudaudit.tencentcloudapi.com.

This API is used to search for operation logs to help query relevant operation information.

A maximum of 200 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common parameter. The value used for this API: LookUpEvents.
Version Yes String Common parameter. The value used for this API: 2019-03-19.
Region Yes String Common parameter. For more information, please see the list of regions supported by the product. This API only supports: ap-guangzhou, ap-taipei
EndTime Yes Integer End time
StartTime Yes Integer Start time
LookupAttributes.N No Array of LookupAttribute Search criteria
MaxResults No Integer Maximum number of logs to be returned
Mode No String CloudAudit mode. Valid values: standard, quick. Default value: standard
NextToken No String Credential for viewing more logs

3. Output Parameters

Parameter Name Type Description
Events Array of Event Logset
ListOver Boolean Whether the logset ends
NextToken String Credential for viewing more logs
RequestId String Unique ID of request. Each request returns a unique ID. The RequestId is required for troubleshooting.

4. Example

5. Developer Resources

API Explorer

This tool allows online call, signature authentication, SDK code generation and quick search of APIs to greatly improve the efficiency of using TencentCloud APIs.

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InternalError.SearchError Internal error. Please submit a ticket for assistance.
InvalidParameter.Time The parameter must contain the start time and end time and must be an integer timestamp (accurate down to the second).
InvalidParameterValue.MaxResult The maximum number of entries returned in one search is 50.
InvalidParameterValue.Time The start time cannot be greater than the end time.
InvalidParameterValue.attributeKey Valid values of AttributeKey: RequestId, EventName, ReadOnly, Username, ResourceType, ResourceName, AccessKeyId
LimitExceeded.OverTime Only entries for the last 7 days can be searched for.

Was this page helpful?

Was this page helpful?

  • Not at all
  • Not very helpful
  • Somewhat helpful
  • Very helpful
  • Extremely helpful
Send Feedback
Help