CreateParserInputV2 is an input datatype for creating a parser. It's used by the createParserV2() mutation field.

Table: CreateParserInputV2

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
allowOverwritingExistingParserBoolean    Allows saving a parser with a name that is already in use, by overwriting the parser that previously had the name.
fieldsToBeRemovedBeforeParsingStringyes   A list of fields that will be removed from the event before it's parsed. These fields will not be included when calculating usage.
fieldsToTagStringyes   Fields that are used as tags.
languageVersionLanguageVersionInputType    A specific language version.
nameStringyes   The name to use for the parser.
repositoryNameRepoOrViewNameyes   The repository where the parser lives.
scriptStringyes   The parser script that is executed for every incoming event.
testCasesParserTestCaseInputyes   Test cases that can be used to help verify that the parser works as expected.