Guardrails and Simple Log Service provide an intelligent log analysis feature. This feature offers a comprehensive service for the real-time collection, storage, query, and in-depth analysis of logs from security checks on AI model inputs and outputs.
A powerful log processing engine enables you to retrieve and analyze tens of billions of log entries in seconds. This helps you accurately detect abnormal behavior, trace threat sources, and optimize security policies. The service also meets all compliance and audit requirements.
Log analysis
Enable the feature
-
If you are a new user, you can enable Simple Log Service and adjust the storage capacity when you activate the Guardrails product. You must also create a service-linked role to complete the activation.
-
If you have already activated the Guardrails product, log on to the . On the page, enable the log analysis feature.
Billing
You are billed based on the storage capacity that you select for log analysis. The capacity ranges from 1 TB to 100 TB. The price is , and charges appear on your Guardrails bill.
Log field descriptions
|
Field name |
Description |
Example value |
|
account_id |
Account |
154XXXX |
|
ram_account_id |
RAM account ID |
234XXX |
|
region_id |
Access Endpoint |
cn-shanghai |
|
request_id |
Request ID |
AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE**** |
|
response_detail |
Content compliance results, such as risk labels and confidence scores. |
/ |
|
service |
Service type |
query_security_check |
|
total_time |
Detection duration |
XX ms |
|
used_api_name |
Business API |
|
|
error_code |
Status code |
200 |
|
error_message |
Response to a request message |
OK |
error_code descriptions
|
error_code |
Status code |
Description |
|
200 |
OK |
The request is successful. |
|
400 |
BAD_REQUEST |
The request is invalid. This may be because the request parameters are incorrect. Check the request parameters. |
|
408 |
PERMISSION_DENY |
This can occur if your account is not authorized, has an overdue payment, is not activated, or is disabled. |
|
500 |
GENERAL_ERROR |
An error occurred. This may be a temporary server-side error. Retry the request. If the error persists, contact us through . |
|
581 |
TIMEOUT |
The request timed out. Retry the request. If the error persists, contact us through . |
|
588 |
EXCEED_QUOTA |
The request frequency exceeds the quota. |