SyslogLogDriverProps Struct
Specifies the syslog log driver configuration options.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const syslogLogDriverProps: ecs.SyslogLogDriverProps = {
address: 'address',
env: ['env'],
envRegex: 'envRegex',
facility: 'facility',
format: 'format',
labels: ['labels'],
tag: 'tag',
tlsCaCert: 'tlsCaCert',
tlsCert: 'tlsCert',
tlsKey: 'tlsKey',
tlsSkipVerify: false,
};
Properties
addressoptionalstringaddressoptionalstraddressoptionalStringAddressoptionalstringAddressoptional*string#Default: If the transport is tcp, udp, or tcp+tls, the default port is 514.
The URI specifier may be [tcp|udp|tcp+tls]😕/host:port, unix://path, or unixgram://path.
envoptionalstring[]envoptionaltyping.List[str]envoptionalList<String>Envoptionalstring[]Envoptional*[]*string#Default: No env
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.
envRegexoptionalstringenv_regexoptionalstrenvRegexoptionalStringEnvRegexoptionalstringEnvRegexoptional*string#Default: No envRegex
Its value is a regular expression to match logging-related environment variables. It is used for advanced log tag options.
facilityoptionalstringfacilityoptionalstrfacilityoptionalStringFacilityoptionalstringFacilityoptional*string#Default: facility not set
Can be the number or name for any valid syslog facility. See the syslog documentation: https://tools.ietf.org/html/rfc5424#section-6.2.1.
Default: format not set
notes
If not specified the local UNIX syslog format is used, without a specified hostname. Specify rfc3164 for the RFC-3164 compatible format, rfc5424 for RFC-5424 compatible format, or rfc5424micro for RFC-5424 compatible format with microsecond timestamp resolution.
labelsoptionalstring[]labelsoptionaltyping.List[str]labelsoptionalList<String>Labelsoptionalstring[]Labelsoptional*[]*string#Default: No labels
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.
Default: The first 12 characters of the container ID
Refer to the log tag option documentation for customizing the log tag format.
tlsCaCertoptionalstringtls_ca_certoptionalstrtlsCaCertoptionalStringTlsCaCertoptionalstringTlsCaCertoptional*string#Default: tlsCaCert not set
Ignored if the address protocol is not tcp+tls.
tlsCertoptionalstringtls_certoptionalstrtlsCertoptionalStringTlsCertoptionalstringTlsCertoptional*string#Default: tlsCert not set
Ignored if the address protocol is not tcp+tls.
tlsKeyoptionalstringtls_keyoptionalstrtlsKeyoptionalStringTlsKeyoptionalstringTlsKeyoptional*string#Default: tlsKey not set
Ignored if the address protocol is not tcp+tls.
tlsSkipVerifyoptionalbooleantls_skip_verifyoptionalbooltlsSkipVerifyoptionalBooleanTlsSkipVerifyoptionalboolTlsSkipVerifyoptional*bool= false#Ignored if the address protocol is not tcp+tls.