Every annotation Collectord recognizes for the syslog forwarder, grouped by the datatype it controls. For usage, examples, and patterns, see the companion Annotations page. All annotations use the syslog.collectord.io/ prefix; annotations under collectord.collectord.io/{annotation} apply to every Collectord instance regardless of subdomain.
- General annotations
syslog.collectord.io/source- change the source for all the data forwarded for this Pod (container logs, application logs)syslog.collectord.io/type- change the sourcetype for all the data forwarded for this Pod (container logs, application logs)syslog.collectord.io/host- change the host for all the data forwarded for this Pod (container logs, application logs)syslog.collectord.io/output- (5.2+) change the output todevnullorsyslogsyslog.collectord.io/userfields.{fieldname}- (5.15.300+) attach custom fields to events
- Annotations for container logs
syslog.collectord.io/logs-source- change the source for the container logs forwarded from this Podsyslog.collectord.io/logs-type- change the sourcetype for the container logs forwarded from this Podsyslog.collectord.io/logs-host- change the host for the container logs forwarded from this Podsyslog.collectord.io/logs-eventpattern- set the regex identifying the event start pattern for Pod logssyslog.collectord.io/logs-replace.{N}-search- define the search pattern for the replace pipesyslog.collectord.io/logs-replace.{N}-val- define the replace pattern for the replace pipesyslog.collectord.io/logs-hashing.{N}-match- (5.3+) the regexp for a matched valuesyslog.collectord.io/logs-hashing.{N}-function- (5.3+) hash function (default issha256, availableadler-32,crc-32-ieee,crc-32-castagnoli,crc-32-koopman,crc-64-iso,crc-64-ecma,fnv-1-64,fnv-1a-64,fnv-1-32,fnv-1a-32,fnv-1-128,fnv-1a-128,md5,sha1,sha256,sha384,sha512)syslog.collectord.io/logs-extraction- define the regexp for fields extractionsyslog.collectord.io/logs-extractionMessageField- (5.18+) specify the field name for the message (by default first unnamed ground in regexp)syslog.collectord.io/logs-timestampfield- define the field for timestamp (after fields extraction)syslog.collectord.io/logs-timestampformat- define the timestamp formatsyslog.collectord.io/logs-timestampsetmonth- define if month should be set to current for timestampsyslog.collectord.io/logs-timestampsetday- define if day should be set to current for timestampsyslog.collectord.io/logs-timestamplocation- define timestamp location if not set by formatsyslog.collectord.io/logs-joinpartial- join partial eventssyslog.collectord.io/logs-joinmultiline- (5.3+) join multiline logs (default value depends on[pipe.join] disabled)syslog.collectord.io/logs-escapeterminalsequences- escape terminal sequences (including colors)syslog.collectord.io/logs-override.{N}-match- (5.2+) match for override patternsyslog.collectord.io/logs-override.{N}-source- (5.2+) override source for matched eventssyslog.collectord.io/logs-override.{N}-type- (5.2+) override type for matched eventssyslog.collectord.io/logs-output- (5.2+) change the output todevnullorsyslog(this annotation cannot be specified for stderr and stdout)syslog.collectord.io/logs-disabled- (5.3+) disable any log processing for this container (this annotation cannot be specified for stderr and stdout)syslog.collectord.io/logs-sampling-percent- (5.6+) specify the % value of logs that should be forwarded to the syslog serversyslog.collectord.io/logs-sampling-key- (5.6+) regexp pattern to specify the key for the sampling based on hash valuessyslog.collectord.io/logs-ThruputPerSecond- (5.10.252+) set the thruput for this container, maximum amount of logs per second, for example128Kb,1024bsyslog.collectord.io/logs-TooOldEvents- (5.10.252+) duration of events from now to past that are considered too old and should be ignored, for example168h,24hsyslog.collectord.io/logs-TooNewEvents- (5.10.252+) duration of events from now to the future that are considered too new and should be ignored, for example1h,30msyslog.collectord.io/logs-whitelist- (5.14.284+) allow to configure pattern for log messages, only log messages matching this pattern will be forwardedsyslog.collectord.io/logs-userfields.{fieldname}- (5.15.300+) attach custom fields to events- Specific for
stdout, with the annotations below you can define configuration specific forstdoutsyslog.collectord.io/stdout-logs-sourcesyslog.collectord.io/stdout-logs-typesyslog.collectord.io/stdout-logs-hostsyslog.collectord.io/stdout-logs-eventpatternsyslog.collectord.io/stdout-logs-replace.{N}-searchsyslog.collectord.io/stdout-logs-replace.{N}-valsyslog.collectord.io/stdout-logs-hashing.{N}-match- (5.3+)syslog.collectord.io/stdout-logs-hashing.{N}-function- (5.3+)syslog.collectord.io/stdout-logs-extractionsyslog.collectord.io/stdout-logs-extractionMessageField- (5.18+)syslog.collectord.io/stdout-logs-timestampfieldsyslog.collectord.io/stdout-logs-timestampformatsyslog.collectord.io/stdout-logs-timestampsetmonthsyslog.collectord.io/stdout-logs-timestampsetdaysyslog.collectord.io/stdout-logs-timestamplocationsyslog.collectord.io/stdout-logs-joinpartialsyslog.collectord.io/stdout-logs-joinmultiline- (5.3+)syslog.collectord.io/stdout-logs-escapeterminalsequencessyslog.collectord.io/stdout-logs-override.{N}-match- (5.2+)syslog.collectord.io/stdout-logs-override.{N}-source- (5.2+)syslog.collectord.io/stdout-logs-override.{N}-type- (5.2+)syslog.collectord.io/stdout-logs-sampling-percent- (5.6+)syslog.collectord.io/stdout-logs-sampling-key- (5.6+)syslog.collectord.io/stdout-logs-ThruputPerSecond- (5.10.252+)syslog.collectord.io/stdout-logs-TooOldEvents- (5.10.252+)syslog.collectord.io/stdout-logs-TooNewEvents- (5.10.252+)syslog.collectord.io/stdout-logs-whitelist- (5.14.284+)
- Specific for
stderr, with the annotations below you can define configuration specific forstderrsyslog.collectord.io/stderr-logs-sourcesyslog.collectord.io/stderr-logs-typesyslog.collectord.io/stderr-logs-hostsyslog.collectord.io/stderr-logs-eventpatternsyslog.collectord.io/stderr-logs-replace.{N}-searchsyslog.collectord.io/stderr-logs-replace.{N}-valsyslog.collectord.io/stderr-logs-hashing.{N}-match- (5.3+)syslog.collectord.io/stderr-logs-hashing.{N}-function- (5.3+)syslog.collectord.io/stderr-logs-extractionsyslog.collectord.io/stderr-logs-extractionMessageField- (5.18+)syslog.collectord.io/stderr-logs-timestampfieldsyslog.collectord.io/stderr-logs-timestampformatsyslog.collectord.io/stderr-logs-timestampsetmonthsyslog.collectord.io/stderr-logs-timestampsetdaysyslog.collectord.io/stderr-logs-timestamplocationsyslog.collectord.io/stderr-logs-joinpartialsyslog.collectord.io/stderr-logs-joinmultiline- (5.3+)syslog.collectord.io/stderr-logs-escapeterminalsequencessyslog.collectord.io/stderr-logs-override.{N}-match- (5.2+)syslog.collectord.io/stderr-logs-override.{N}-source- (5.2+)syslog.collectord.io/stderr-logs-override.{N}-type- (5.2+)syslog.collectord.io/stderr-logs-sampling-percent- (5.6+)syslog.collectord.io/stderr-logs-sampling-key- (5.6+)syslog.collectord.io/stderr-logs-ThruputPerSecond- (5.10.252+)syslog.collectord.io/stderr-logs-TooOldEvents- (5.10.252+)syslog.collectord.io/stderr-logs-TooNewEvents- (5.10.252+)syslog.collectord.io/stderr-logs-whitelist- (5.14.284+)
- Annotations for events (can be applied only to namespaces)
syslog.collectord.io/events-source- change the source for the events of specific namespacesyslog.collectord.io/events-type- change the source type for the events of specific namespacesyslog.collectord.io/events-host- change the host for the events of specific namespacesyslog.collectord.io/events-userfields.{fieldname}- (5.15.300+) attach custom fields to eventssyslog.collectord.io/events-output- (26.04.1+) change the output for the events published on the namespace
- Annotations for application logs
syslog.collectord.io/volume.{N}-logs-name- name of the volume attached to Podsyslog.collectord.io/volume.{N}-logs-output- configure the output for the logs forwarded from the volumesyslog.collectord.io/volume.{N}-logs-source- change the source for logs forwarded from the volumesyslog.collectord.io/volume.{N}-logs-type- change the type for logs forwarded from the volumesyslog.collectord.io/volume.{N}-logs-host- change the host for logs forwarded from the volumesyslog.collectord.io/volume.{N}-logs-eventpattern- change the event pattern defining new event for logs forwarded from the volumesyslog.collectord.io/volume.{N}-logs-replace.{N}-search- specify the regex search for replace pipe for the logssyslog.collectord.io/volume.{N}-logs-replace.{N}-val- specify the regex replace pattern for replace pipe for the logssyslog.collectord.io/volume.{N}-logs-hashing.{N}-match- (5.3+) the regexp for a matched valuesyslog.collectord.io/volume.{N}-logs-hashing.{N}-function- (5.3+) hash function (default issha256, availableadler-32,crc-32-ieee,crc-32-castagnoli,crc-32-koopman,crc-64-iso,crc-64-ecma,fnv-1-64,fnv-1a-64,fnv-1-32,fnv-1a-32,fnv-1-128,fnv-1a-128,md5,sha1,sha256,sha384,sha512)syslog.collectord.io/volume.{N}-logs-extraction- specify the fields extraction with the regex the logssyslog.collectord.io/volume.{N}-logs-extractionMessageField- (5.18+) specify the field name for the message (by default first unnamed ground in regexp)syslog.collectord.io/volume.{N}-logs-timestampfield- specify the timestamp fieldsyslog.collectord.io/volume.{N}-logs-timestampformat- specify the format for timestamp fieldsyslog.collectord.io/volume.{N}-logs-timestampsetmonth- define if month should be set to current for timestampsyslog.collectord.io/volume.{N}-logs-timestampsetday- define if day should be set to current for timestampsyslog.collectord.io/volume.{N}-logs-timestamplocation- define timestamp location if not set by formatsyslog.collectord.io/volume.{N}-logs-glob- set the glob pattern for matching logssyslog.collectord.io/volume.{N}-logs-match- set the regexp pattern for matching logssyslog.collectord.io/volume.{N}-logs-recursive- set if walker should walk the directory recursivesyslog.collectord.io/volume.{N}-logs-override.{N}-match- (5.2+) match for override patternsyslog.collectord.io/volume.{N}-logs-override.{N}-source- (5.2+) override source for matched eventssyslog.collectord.io/volume.{N}-logs-override.{N}-type- (5.2+) override type for matched eventssyslog.collectord.io/volume.{N}-logs-sampling-percent- (5.6+) specify the % value of logs that should be forwarded to the syslog serversyslog.collectord.io/volume.{N}-logs-sampling-key- (5.6+) regexp pattern to specify the key for the sampling based on hash valuessyslog.collectord.io/volume.{N}-logs-ThruputPerSecond- (5.10.252+) set the thruput for this container, maximum amount of logs per second, for example128Kb,1024bsyslog.collectord.io/volume.{N}-logs-TooOldEvents- (5.10.252+) duration of events from now to past that are considered too old and should be ignored, for example168h,24hsyslog.collectord.io/volume.{N}-logs-TooNewEvents- (5.10.252+) duration of events from now to the future that are considered too new and should be ignored, for example1h,30msyslog.collectord.io/volume.{N}-logs-whitelist- (5.14.284+) allow to configure pattern for log messages, only log messages matching this pattern will be forwardedsyslog.collectord.io/volume.{N}-logs-userfields.{fieldname}- (5.15.300+) attach custom fields to eventssyslog.collectord.io/volume.{N}-logs-maxholdafterclose- (5.18.381+) how long Collectord can hold file descriptors open for files in PVC after pod is terminated (duration5s,1800s)syslog.collectord.io/volume.{N}-logs-onvolumedatabase- (5.20.400+) boolean flag to enable on volume database for this volume, in case if this volume might be used on more than one hostsyslog.collectord.io/volume.{N}-logs-withlock- (5.24.440+) boolean flag to enable file locking of forwarding logs from the files, and preventing other Collectord instances to read the file