The CreateParserInputV2 is the input for creating a parser. It includes various settings.

Table: CreateParserInputV2

ParameterTypeRequiredDefaultDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 17, 2024
allowOverwritingExistingParserboolean  Allows saving a parser with a name that is already in use, by overwriting the parser that previously had the name.
fieldsToTag[string]yes Fields that are used as tags.
fieldsToBeRemovedBeforeParsing[string]yes A list of fields that will be removed from the event before it's parsed. These fields will not be included when calculating usage.
languageVersionmultiple  A specific language version. The multiple datatype consists of LanguageVersionInputType = {name: 'legacy'}. See LanguageVersionInputType.
namestringyes The name to use for the parser.
repositoryNamerepoOrViewNameyes The repository where the parser is located. RepoOrViewName is a scalar.
scriptstringyes The parser script that is executed for every incoming event.
testCases[ParserTestCaseInput]yes Test cases that can be used to help verify that the parser works as expected. See ParserTestCaseInput.