GelfLogDriverProps Struct
Specifies the journald log driver configuration options.
Example
// Create a Task Definition for the container to start
const taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');
taskDefinition.addContainer('TheContainer', {
image: ecs.ContainerImage.fromRegistry('example-image'),
memoryLimitMiB: 256,
logging: ecs.LogDrivers.gelf({ address: 'my-gelf-address' }),
});
Properties
tcp and udp are the only supported URI specifier and you must specify the port.
compressionLevelnumbercompression_levelint | floatcompressionLevelNumberCompressionLeveldoubleCompressionLevel*float64= 1#An integer in the range of -1 to 9 (BestCompression). Higher levels provide more compression at lower speed. Either -1 or 0 disables compression.
compressionTypeGelfCompressionTypecompression_typeGelfCompressionTypecompressionTypeGelfCompressionTypeCompressionTypeGelfCompressionTypeCompressionTypeGelfCompressionType= gzip#Allowed values are gzip, zlib and none.
If there is collision between label and env keys, the value of the env takes precedence. Adds additional fields to the extra attributes of a logging message.
Its value is a regular expression to match logging-related environment variables. It is used for advanced log tag options.
If there is collision between label and env keys, the value of the env takes precedence. Adds additional fields to the extra attributes of a logging message.
Refer to the log tag option documentation for customizing the log tag format.
default
Default: The first 12 characters of the container ID
tcpMaxReconnectnumbertcp_max_reconnectint | floattcpMaxReconnectNumberTcpMaxReconnectdoubleTcpMaxReconnect*float64= 3#A positive integer.