API Stability Deprecated

The createParser() GraphQL mutation may be used to create a parser in LogScale. However, this has been deprecated and will be removed in version 183.142. It has been replaced by mutation where more extensive test cases can be set. Use instead createParserV2().

For more information on creating a parser, see the Creating a Parser documentation page. You may also want to look at the Parsing Data and Parsing Log Data pages for related information.

Syntax

Below is the syntax for the createParser() mutation field:

graphql
createParser(
      input: CreateParserInput!
   ): CreateParserMutation!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  SOMETHING
}

Given Datatypes

For CreateParserInput, there are several parameters that may be given. Below is a list of them along with a description of each:

Table: CreateParserInput

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: Apr 7, 2025
forcebooleanyesfalseDeprecatedFields to include within the Slack message. Can be templated with values from the result (see SlackFieldEntryInput Table).
languageVersionLanguageVersionEnumyeslegacyDeprecatedThe language version. See LanguageVersionEnum.
namestringyes DeprecatedName of the action.
repositoryNamestringyes DeprecatedName of the view of the action.
sourceCodestringyes DeprecatedName of the action.
tagFields[string]yes DeprecatedSlack webhook URL to where request is to be sent.
testData[string]yes DeprecatedName of the action.

Returned Datatypes

For CreateParserMutation, there's one parameter, but if you click on it below, you'll see there are several sub-parameters from which to choose.

Table: CreateParserMutation

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: Sep 24, 2024
parserParseryes Long-TermThe parser to create. See Parser.