Guardrails integrates with Simple Log Service to collect, store, query, and analyze logs from security checks on AI model inputs and outputs in real time.
The log processing engine retrieves and analyzes tens of billions of log entries in seconds, helping you detect anomalies, trace threats, optimize security policies, and meet compliance requirements.
Log analysis
Enable log analysis
-
New users can enable Simple Log Service and set the storage capacity during Guardrails activation. A service-linked role is required to complete the setup.


-
If Guardrails is already activated, log on to the Guardrails console. On the page, enable log analysis.
Billing
Billing is based on the storage capacity you select (1 TB to 100 TB). The price is CNY 2 per TB per hour, and charges appear on your Guardrails bill.
Log fields
|
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, including 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 message |
OK |
error_code descriptions
|
error_code |
Status code |
Description |
|
200 |
OK |
The request is successful. |
|
400 |
BAD_REQUEST |
Invalid request. This may be because the request parameters are incorrect. Check the request parameters. |
|
408 |
PERMISSION_DENY |
This can occur if the account is not authorized, has an overdue payment, is not activated, or is disabled. |
|
500 |
GENERAL_ERROR |
A server-side error occurred. This may be a temporary error. Retry the request. If the error persists, contact us through online support. |
|
581 |
TIMEOUT |
Request timed out. Retry the request. If the error persists, contact us through online support. |
|
588 |
EXCEED_QUOTA |
Request rate exceeds the quota. |