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:
createParser(
input: CreateParserInput!
): CreateParserMutation!
Below is an example of how this mutation field might be used:
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
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
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 | |||||
force | boolean | yes | false | Deprecated | Fields to include within the Slack message. Can be templated with values from the result (see SlackFieldEntryInput Table). |
languageVersion | LanguageVersionEnum | yes | legacy | Deprecated | The language version. See LanguageVersionEnum . |
name | string | yes | Deprecated | Name of the action. | |
repositoryName | string | yes | Deprecated | Name of the view of the action. | |
sourceCode | string | yes | Deprecated | Name of the action. | |
tagFields | [string] | yes | Deprecated | Slack webhook URL to where request is to be sent. | |
testData | [string] | yes | Deprecated | Name 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
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
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 | |||||
parser | Parser | yes | Long-Term | The parser to create. See Parser . |