Interface GelfLogDriverProps
- All Superinterfaces:
BaseLogDriverProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
GelfLogDriverProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.372Z")
@Stability(Stable)
public interface GelfLogDriverProps
extends software.amazon.jsii.JsiiSerializable, BaseLogDriverProps
Specifies the journald log driver configuration options.
Example:
// Create a Task Definition for the container to start Ec2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, "TaskDef"); taskDefinition.addContainer("TheContainer", ContainerDefinitionOptions.builder() .image(ContainerImage.fromRegistry("example-image")) .memoryLimitMiB(256) .logging(LogDrivers.gelf(GelfLogDriverProps.builder().address("my-gelf-address").build())) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forGelfLogDriverProps
static final class
An implementation forGelfLogDriverProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic GelfLogDriverProps.Builder
builder()
The address of the GELF server.default Number
UDP Only The level of compression when gzip or zlib is the gelf-compression-type.default GelfCompressionType
UDP Only The type of compression the GELF driver uses to compress each log message.default Number
TCP Only The maximum number of reconnection attempts when the connection drop.default Duration
TCP Only The number of seconds to wait between reconnection attempts.Methods inherited from interface software.amazon.awscdk.services.ecs.BaseLogDriverProps
getEnv, getEnvRegex, getLabels, getTag
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAddress
The address of the GELF server.tcp and udp are the only supported URI specifier and you must specify the port.
-
getCompressionLevel
UDP Only The level of compression when gzip or zlib is the gelf-compression-type.An integer in the range of -1 to 9 (BestCompression). Higher levels provide more compression at lower speed. Either -1 or 0 disables compression.
Default: - 1
-
getCompressionType
UDP Only The type of compression the GELF driver uses to compress each log message.Allowed values are gzip, zlib and none.
Default: - gzip
-
getTcpMaxReconnect
TCP Only The maximum number of reconnection attempts when the connection drop.A positive integer.
Default: - 3
-
getTcpReconnectDelay
TCP Only The number of seconds to wait between reconnection attempts.A positive integer.
Default: - 1
-
builder
- Returns:
- a
GelfLogDriverProps.Builder
ofGelfLogDriverProps
-