General Information
Connection Type
UI Documentation
Endpoints
List Connections
Get Connection
Create Connection
Update Connection
Delete Connection
List Connections
Endpoint
Request
Headers
| Header | Value |
|---|---|
| Authorization | Bearer |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
type query parameter is required to filter connections by type.
cURL Example
Get Connection
Endpoint
Request
Headers
| Header | Value |
|---|---|
| Authorization | Bearer |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
| connectionName | string | Yes | Connection name |
Response
Success Response (200 OK)
tlsTrustCertChainFile is masked in get operations.
cURL Example
Create Connection
Endpoint
Request
Headers
| Header | Value |
|---|---|
| Authorization | Bearer |
| Content-Type | application/json |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
| connectionName | string | Yes | Connection name |
Request Body
Full JSON Body Example - Basic TCP Connection
Full JSON Body Example - UDP Connection with Compression
Full JSON Body Example - TCP with TLS
Request Body Fields
Common Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| type | string | Yes | - | Connection type discriminator field. Identifies the connection type in API requests/responses. |
| name | string | Yes | - | Connection name (must match path parameter) |
| description | string | No | - | Connection description |
| deployToWorker | boolean | No | true | Whether to deploy to worker |
| enabled | boolean | No | true | Whether connection is enabled |
Graylog-Specific Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| hostname | string | Yes | - | Graylog server hostname or IP address |
| port | integer | No | 12201 | Graylog server port (default: 12201) |
| transportType | string | No | TCP | Transport protocol. See GelfTransports |
| tlsEnabled | boolean | No | false | Enable TLS encryption |
| tlsCertVerificationEnabled | boolean | No | false | Enable TLS certificate verification (requires tlsTrustCertChainFile if true) |
| compressionType | string | No | NONE | Compression type. See Compression |
| gelfMessageLevel | string | No | INFO | Default GELF message level. See GelfMessageLevel |
| queueSize | integer | No | 512 | Message queue size |
| reconnectDelay | integer | No | 2500 | Reconnection delay in milliseconds |
| connectTimeout | integer | No | 10000 | Connection timeout in milliseconds |
| tcpNoDelay | boolean | No | true | Enable TCP_NODELAY option (for TCP transport) |
| tcpKeepAlive | boolean | No | false | Enable TCP keep-alive (for TCP transport) |
| sendBufferSize | integer | No | -1 | Send buffer size in bytes (-1 for system default) |
| maxInflightSends | integer | No | 512 | Maximum number of in-flight send operations |
| threads | integer | No | 0 | Number of worker threads (0 for default) |
| tlsTrustCertChainFile | string (base64) | No | null | TLS trust certificate chain file content (base64 encoded) |
| tlsTrustCertChainFileName | string | No | null | TLS trust certificate chain file name |
| appendToAttributes | boolean | No | true | Append additional data to GELF attributes |
| appendToMessage | boolean | No | true | Append additional data to GELF message |
Gelf Transports (transportType)
TCP- TCP transport (reliable, ordered delivery)UDP- UDP transport (faster, but unreliable)
Compression (compressionType)
NONE- No compressionGZIP- GZIP compressionZLIB- ZLIB compression
Gelf Message Level (gelfMessageLevel)
EMERGENCY- Emergency level (0)ALERT- Alert level (1)CRITICAL- Critical level (2)ERROR- Error level (3)WARNING- Warning level (4)NOTICE- Notice level (5)INFO- Info level (6)DEBUG- Debug level (7)
Notes
hostnameis required.portdefaults to 12201 (standard Graylog GELF port).transportTypedefaults to TCP.- For TLS: Set
tlsEnabled: true. IftlsCertVerificationEnabled: true, providetlsTrustCertChainFile(base64-encoded certificate content). tlsTrustCertChainFileshould be base64-encoded certificate content.sendBufferSize: -1uses system default.threads: 0uses default thread pool.
Response
Success Response (200 OK)
cURL Example
Update Connection
Endpoint
Request
Headers
| Header | Value |
|---|---|
| Authorization | Bearer |
| Content-Type | application/json |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
| connectionName | string | Yes | Connection name (must match name in body) |
Request Body
Full JSON Body Example
Response
Success Response (200 OK)
Delete Connection
Endpoint
Request
Headers
| Header | Value |
|---|---|
| Authorization | Bearer |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
| connectionName | string | Yes | Connection name |
Response
Success Response (200 OK)
Notes and Warnings
-
Transport Types:
TCP- Reliable, ordered delivery. Recommended for production.UDP- Faster, but unreliable. Use for high-throughput scenarios where message loss is acceptable.
-
TLS Encryption:
- Enable
tlsEnabled: truefor encrypted connections. - Set
tlsCertVerificationEnabled: trueto verify server certificates. - When certificate verification is enabled, provide
tlsTrustCertChainFile(base64-encoded CA certificate).
- Enable
-
Compression:
NONE- No compression (fastest, largest messages)GZIP- Good balance of compression and speedZLIB- Better compression, slightly slower- Compression is especially useful for UDP transport to reduce packet size.
-
Message Levels:
- GELF message levels follow syslog severity levels.
- Lower numeric values indicate higher severity.
- Default level is
INFO.
-
Performance Tuning:
queueSize- Larger queues handle bursts better but use more memory.maxInflightSends- Higher values improve throughput but use more resources.threads- More threads improve concurrency (0 uses default).sendBufferSize- Larger buffers improve throughput (-1 uses system default).
-
TCP Options:
tcpNoDelay: true- Disables Nagle’s algorithm (lower latency).tcpKeepAlive: true- Keeps connections alive (useful for long-lived connections).
-
Reconnection:
reconnectDelay- Delay before reconnecting after failure (milliseconds).connectTimeout- Maximum time to wait for connection establishment (milliseconds).
-
Message Attributes:
appendToAttributes: true- Adds additional fields to GELF attributes.appendToMessage: true- Adds additional data to GELF message field.
- Port: Default port is 12201 (standard Graylog GELF port). Ensure Graylog server is configured to accept connections on this port.
-
Deployment: Connection changes require deployment to take effect. Set
deployToWorker: trueor deploy manually.
Related Documentation
- List Connections - List all connections
- Get Connection - Get a specific connection
- Create Connection - General connection creation guide
- Update Connection - General connection update guide
- Delete Connection - General connection deletion guide

