ParserTestRunInput is used to input data for a parser test run.

Table: ParserTestRunInput

ParameterTypeRequiredDefaultStabilityDescription
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: Mar 28, 2025
fieldsToBeRemovedBeforeParsing[string]yes Long-TermA list of fields that will be removed from the event before it's parsed. These fields will not be included when calculating usage.
fieldsToTag[string]yes Long-TermThe fields that are used as tags.
languageVersionLanguageVersionInputTypeyes{name: ”legacy“}Long-TermA specific language version. See LanguageVersionInputType.
parserNamestringyes Long-TermThe name of the parser. This is part of the test output in the #type field in each parsed event.
repositoryNamerepoOrViewNameyes Long-TermThe name of the repository in which the parser is located. This is part of the test output in the #repo field in each parsed event. The repoOrViewName is a scalar.
schemayaml  Long-TermThe YAML specification of schema by which to validate parser output.
scriptstringyes Long-TermThe parser script that is executed for every incoming event.
testCases[ParserTestCaseInput]yes Long-TermThe test cases to run the parsing script against. See ParserTestCaseInput.