API Stability |
Long-Term
|
The updateIngestListenerV3() GraphQL mutation is used to update an ingest listener in LogScale.
For more information on ingest listeners, see the Ingest Listeners documentation page. You may also want to look at the Ingesting Data page for related information.
Syntax
Below is the syntax for the updateIngestListenerV3() mutation field:
updateIngestListenerV3(
input: UpdateIngestListenerV3Input!
): IngestListener!
Below is an example of how this mutation field might be used:
mutation {
updateIngestListenerV3( input:
{ repositoryName: "humio",
id: "abc123",
name: "werelistening",
port: 8080,
protocol: TCP,
bindInterface: "0.0.0.0",
parser: "kv",
charset: "UTF-8"
}
)
{ id }
}
{
"data": {
"updateIngestListenerV3": {
"id": "abc123"
}
}
}
Given Datatypes
For UpdateIngestListenerV3Input, there are several parameters. Below is a list of them along with a description of each:
Table: UpdateIngestListenerV3Input
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 23, 2024 | |||||
bindInterface | string | yes | Long-Term | The IP address on which the ingest listener will bind. | |
charset | string | yes | Long-Term | The character set used to decode the event stream. | |
id | string | yes | Long-Term | The unique identifier of the ingest listener. | |
parser | string | yes | Long-Term | The unique identifier or name of the parser to assign to the ingest listener. Parsers in packages can be referred to as packagescope/packagename:parsername. | |
port | integer | yes | Long-Term | The port on which the ingest listener will listen. | |
protocol | IngestListenerProtocol | yes | Long-Term | The kind of listener. See IngestListenerProtocol . | |
name | string | yes | Long-Term | The name of the ingest listener. | |
repositoryName | string | yes | Long-Term | The name of the repository. | |
vHost | integer | Long-Term | The vHost name for the ingest listener. |
Returned Datatypes
The returned datatype IngestListener has several parameters. Below is a list of them along with a description of each:
Table: IngestListener
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 25, 2024 | |||||
bindInterface | string | yes | Long-Term | The ip address this listener will bind to. By default (leaving this field empty) it will bind to 0.0.0.0 - all interfaces. Using this field it is also possible to specify the address to bind to. In a cluster setup it is also possible to specify if only one machine should open a socket - The vhost field is used for that. | |
charset | string | yes | Long-Term | The character set used to decode the event stream. Available character sets depend on the JVM running the LogScale instance. Names and aliases can be found at http://www.iana.org/assignments/character-sets/character-sets.xhtml | |
id | string | yes | Long-Term | The unique identifier for the ingest listener. | |
name | string | yes | Long-Term | The name of the ingest listener. | |
parser | Parser | yes | Long-Term | The parser configured to parse data for the listener. It returns null if the parser has been removed since the listener was created. See Parser . | |
port | integer | yes | Long-Term | The TCP/UDP port on which to listen. | |
protocol | IngestListenerProtocol | yes | Long-Term | The network protocol data is sent through. See IngestListenerProtocol . | |
repository | Repository | yes | Long-Term | The repository associated with the ingest listener. See Repository . | |
vHost | integer | Long-Term | Specify which host should open the socket. By default this field is empty and all hosts will open a socket. This field can be used to select only one host to open the socket. |