Torch Log Service
Configuration | Description |
Configuration | Description |
Log type | Large model application firewall access logs |
Log storage location | When creating an instance in the large model application firewall console, the TLS feature is enabled, and the project and log topic are automatically created. For details on managing log resources, please refer to Manage LLM Application Firewall Service log resources.
|
Log storage period | The default is 180 days. |
Log shards |
|
Index settings | The index is configured automatically. |
Log fields |
Field | Description |
Field | Description |
TimestampMS | The timestamp information of the log, unit: milliseconds. |
LogType | Type of log:
|
AppID | Asset ID information for access. |
RequestID | Request ID initiated during invocation. |
ClientIP | Client IP of the request. |
ClientPort | Port number of the client initiating the request. Only applicable to traffic inspection mode. |
Method | Request method. Only applicable to traffic inspection mode. |
ServerProtocol | Server protocol version, such as HTTP/1.1, HTTP/2, and more. Only applicable to traffic inspection mode. |
Scheme | Request protocol, including HTTP and HTTPS. Only applicable to traffic inspection mode. |
Path | Request path. Only applicable to traffic inspection mode. |
QueryArgs | Query parameters. Only applicable to traffic inspection mode. |
Host | Domain information, which may be a wildcard domain. Only applicable to traffic inspection mode. |
MatchedHost | Matched domain information, exact domain. Only applicable to traffic inspection mode. |
ContentType | Content type of the HTTP request, such as application/json. Only applicable to traffic inspection mode. |
Referer | Source of the request access. Only applicable to traffic inspection mode. |
UserAgent | Client device information. Only applicable to traffic inspection mode. |
XForwardedFor | Actual client IP address. Only applicable to traffic inspection mode. |
Status | Request status code. Only applicable to traffic inspection mode. |
Body | Body content of the HTTP request. Only applicable to traffic inspection mode. |
ContentLength | Length of the HTTP request. Only applicable to traffic inspection mode. |
Content | Details of the content sent for inspection. |
Role | Source of the content sent for inspection, used to distinguish content attributes:
|
Action | Execution action after policy is triggered.
|
DecisionResponse | Final execution action after policy is triggered. |
DecisionCategory | Type of triggered policy. |
DecisionLabelList | List of triggered detection category labels. |
RuleIDList | List of triggered rule IDs. |
GenerateContent | Content generated by the proxy answer interface. |
MsgID | Message ID generated after SDK invocation. |
Token | Number of billing units consumed by text content during a single inspection by the large model application firewall. |
ImageToken | Number of billing units consumed by image content during a single inspection by the large model application firewall. One image consumes one ImageToken. |