- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- ParserLogResult
- ParsedEvents
- ParsedEvent
- StatedumpResult
- Try it!
Full name: projects.locations.instances.logTypes.runParser
logTypes.runParser runs the parser against a log and returns normalized events or any error that occurred during the normalization.
HTTP request
Path parameters
| Parameters | |
|---|---|
| logtype | 
 Required. The logtype of parser or parserExtension. Format: projects/{project}/locations/{location}/instances/{instance}/logTypes/{logtype} | 
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
| { "parser": { object ( | 
| Fields | |
|---|---|
| parser | 
 The parser configuration. | 
| parserExtension | 
 The parser extension configuration. | 
| dynamicParsingConfig | 
 Optional. The dynamic parsing config. | 
| log[] | 
 sample logs used for while running the parser A base64-encoded string. | 
| statedumpAllowed | 
 Optional. Flag whether the Statedump filter is enabled or not for a config. If enabled, the intermediate state of the parsing will be returned as part of the output. Useful for debugging purposes. | 
| continueOnError | 
 Optional. | 
Response body
Response message for logTypes.runParser.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| {
  "runParserResults": [
    {
      object ( | 
| Fields | |
|---|---|
| runParserResults[] | 
 Results produced after running a parser over log. | 
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 logtype resource:
- chronicle.parsers.runParser
For more information, see the IAM documentation.
ParserLogResult
Result generated when normalizing a log.
| JSON representation | 
|---|
| { "log": string, "statedumpResults": [ { object ( | 
| Fields | |
|---|---|
| log | 
 Log entry. A base64-encoded string. | 
| statedumpResults[] | 
 Statedump filter output. | 
| parsedFields | 
 | 
| failedFieldsAndErrors | 
 | 
| Union field result. parsed result.resultcan be only one of the following: | |
| parsedEvents | 
 Parsed events when normalizing a log. | 
| error | 
 Error message when normalizing the log. | 
ParsedEvents
Normalized events generated from a log.
| JSON representation | 
|---|
| {
  "events": [
    {
      object ( | 
| Fields | |
|---|---|
| events[] | 
 Events generated when normalizing the log. | 
ParsedEvent
EventInfo is a wrapper containing a UDM or Entity.
| JSON representation | 
|---|
| { // Union field | 
| Fields | |
|---|---|
| Union field  
 | |
| event | 
 A UDM event. | 
| entity | 
 An Entity. | 
StatedumpResult
StatedumpResult represents statedump filter output generated from a log.
| JSON representation | 
|---|
| { "label": string, "statedumpResult": string } | 
| Fields | |
|---|---|
| label | 
 Label represents a tag for the statedump filter. | 
| statedumpResult | 
 StatedumpResult represents output for the corresponding label. |