Resource: ParserExtension
ParserExtension provides extensibility semantics for a log parser.
| JSON representation | 
|---|
{ "name": string, "state": enum (  | 
              
| Fields | |
|---|---|
name | 
                
                   
 Output only. Format: projects/{project}/locations/{location}/instances/{instance}/logTypes/{logtype}/parserExtensions/{parserExtension}  | 
              
state | 
                
                   
 Output only. The state of the parser extension  | 
              
createTime | 
                
                   
 Output only. The time the parser extension was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:   | 
              
log | 
                
                   
 Raw log used to assist the user in creation of augmentation. A base64-encoded string.  | 
              
extensionValidationReport | 
                
                   
 The latest extension validation report for this extension.  | 
              
validationReport | 
                
                   
 Output only. The validation report generated during extension validation.  | 
              
stateLastChangedTime | 
                
                   
 The time the config state was last changed. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:   | 
              
lastLiveTime | 
                
                   
 The time the config was last serving live traffic. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:   | 
              
Union field config. One of parser config-based normalizer (CBN) snippet or field extractors. config can be only one of the following: | 
              |
cbnSnippet | 
                
                   
 Parser config could be a cbn snippet. A base64-encoded string.  | 
              
fieldExtractors | 
                
                   
 Parser config could be a field extractor.  | 
              
dynamicParsing | 
                
                   
 Parser config could be a dynamic parsing config.  | 
              
DynamicParsingConfig
A representation of a parser extension as dynamic parsing config.
| JSON representation | 
|---|
{
  "optedFields": [
    {
      object ( | 
              
| Fields | |
|---|---|
optedFields[] | 
                
                   
 Optional. List of fields to be parsed.  | 
              
LogField
A representation of a log field.
| JSON representation | 
|---|
{ "path": string, "sampleValue": string }  | 
              
| Fields | |
|---|---|
path | 
                
                   
 Optional. Path of the log field.  | 
              
sampleValue | 
                
                   
 Optional. Sample value of the log field.  | 
              
State
State of parser extension.
| Enums | |
|---|---|
STATE_UNSPECIFIED | 
                The state for this parser extension was not specified. | 
NEW | 
                The parser extension has been newly submitted and is waiting to be validated. | 
VALIDATING | 
                The parser extension is currently going through the validation pipeline. | 
LIVE | 
                The parser extension is live in production. Only configs that have successfully passed the validation stage will be set to LIVE. | 
REJECTED | 
                Validation completed, but the parser extension was rejected with errors. | 
INTERNAL_ERROR | 
                An error occurred when processing this parser extension. | 
VALIDATED | 
                Extension is validated. | 
ARCHIVED | 
                Extension is archived and is no more being used. | 
Methods | 
            |
|---|---|
                
 | 
              ActivateParserExtension switches the customer to use requested parser extension, This will set the extension state to ACTIVE. | 
                
 | 
              Create a parser extension. | 
                
 | 
              Delete a parser extension. | 
                
 | 
              Get a parser extension. | 
                
 | 
              List all parser extensions. |