UpdateParserInputV2 is used to provide input for updating a parser.

Table: UpdateParserInputV2

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For return datatypes, this indicates that you must specify which fields you want returned in the results.
Table last updated: Sep 23, 2024
fieldsToBeRemovedBeforeParsing[string]yes Long-TermA list of fields that will be removed from the event before it's parsed. They won't be included when calculating usage.
fieldsToTag[string]yes Long-TermThe fields that are used as tags.
idstringyes Long-TermThe unique identifier of the parser to update.
namestring  Long-TermThe name to use for the parser.
repositoryNameRepoOrViewNameyes Long-TermThe repository where the parser is located. RepoOrViewName is a scalar.
scriptUpdateParserScriptInput  Long-TermInput for updating the parser script. See UpdateParserScriptInput.
testCases[ParserTestCaseInput]yes Long-TermTest cases that can be used to help verify that the parser works as expected. See ParserTestCaseInput.