- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- LogTypePrediction
- Try it!
Full name: projects.locations.instances.logs.classify
Classify the logs to the corresponding logType.
HTTP request
Path parameters
| Parameters | |
|---|---|
| parent | 
 Required. The parent, which requests the classification. | 
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
| { "logData": [ string ] } | 
| Fields | |
|---|---|
| logData[] | 
 Required. The batch of log data to classify. A base64-encoded string. | 
Response body
Response message for classifying logs to the corresponding logType classes.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| {
  "predictions": [
    {
      object ( | 
| Fields | |
|---|---|
| predictions[] | 
 The logType predictions for the logData. Sorted in descending order of confidence score. | 
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent resource:
- chronicle.instances.logTypeClassifier
For more information, see the IAM documentation.
LogTypePrediction
A single logtype prediction.
| JSON representation | 
|---|
| { "logType": string, "score": number } | 
| Fields | |
|---|---|
| logType | 
 The log type that was classified. | 
| score | 
 Score for this log type (e.g., the probability the item belongs to this log type). |