ParserTestRunInput is an input datatype for providing data for testing a parser. It's used by the testParserV2() mutation field.

Table: ParserTestRunInput

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: Oct 29, 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.
languageVersionLanguageVersionInputType {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. YAML is a scalar.
schemaNameSchema {name: ”legacy“}Long-TermThe name of the used schema. See Schema.
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.