Every annotation Collectord recognizes, grouped by the datatype it controls. For usage, examples, and patterns, see the companion Annotations page.
- General annotations
collectord.io/index- change the index for all the data forwarded for this Pod (metrics, container logs, application logs)collectord.io/source- change the source for all the data forwarded for this Pod (metrics, container logs, application logs)collectord.io/type- change the sourcetype for all the data forwarded for this Pod (metrics, container logs, application logs)collectord.io/host- change the host for all the data forwarded for this Pod (metrics, container logs, application logs)collectord.io/output- (5.2+) change the output todevnullorsplunkcollectord.io/userfields.{fieldname}- (5.15.300+) attach custom fields to events
- Annotations for container logs
collectord.io/logs-index- change the index for the container logs forwarded from this Podcollectord.io/logs-source- change the source for the container logs forwarded from this Podcollectord.io/logs-type- change the sourcetype for the container logs forwarded from this Podcollectord.io/logs-host- change the host for the container logs forwarded from this Podcollectord.io/logs-eventpattern- set the regex identifying the event start pattern for Pod logscollectord.io/logs-replace.{N}-search- define the search pattern for the replace pipecollectord.io/logs-replace.{N}-val- define the replace pattern for the replace pipecollectord.io/logs-hashing.{N}-match- (5.3+) the regexp for a matched valuecollectord.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)collectord.io/logs-extraction- define the regexp for fields extractioncollectord.io/logs-extractionMessageField- (5.18+) specify the field name for the message (by default first unnamed ground in regexp)collectord.io/logs-timestampfield- define the field for timestamp (after fields extraction)collectord.io/logs-timestampformat- define the timestamp formatcollectord.io/logs-timestampsetmonth- define if month should be set to current for timestampcollectord.io/logs-timestampsetday- define if day should be set to current for timestampcollectord.io/logs-timestamplocation- define timestamp location if not set by formatcollectord.io/logs-joinpartial- join partial eventscollectord.io/logs-joinmultiline- (5.3+) join multiline logs (default value depends on[pipe.join] disabled)collectord.io/logs-escapeterminalsequences- escape terminal sequences (including colors)collectord.io/logs-override.{N}-match- (5.2+) match for override patterncollectord.io/logs-override.{N}-index- (5.2+) override index for matched eventscollectord.io/logs-override.{N}-source- (5.2+) override source for matched eventscollectord.io/logs-override.{N}-type- (5.2+) override type for matched eventscollectord.io/logs-output- (5.2+) change the output todevnullorsplunk(this annotation cannot be specified for stderr and stdout)collectord.io/logs-disabled- (5.3+) disable any log processing for this container (this annotation cannot be specified for stderr and stdout)collectord.io/logs-sampling-percent- (5.6+) specify the % value of logs that should be forwarded to splunkcollectord.io/logs-sampling-key- (5.6+) regexp pattern to specify the key for the sampling based on hash valuescollectord.io/logs-ThruputPerSecond- (5.10.252+) set the thruput for this container, maximum amount of logs per second, for example128Kb,1024bcollectord.io/logs-TooOldEvents- (5.10.252+) duration of events from now to past that are considered too old and should be ignored, for example168h,24hcollectord.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,30mcollectord.io/logs-whitelist- (5.14.284+) allow to configure pattern for log messages, only log messages matching this pattern will be forwarded to Splunkcollectord.io/logs-userfields.{fieldname}- (5.15.300+) attach custom fields to events- Specific for
stdout, with the annotations below you can define configuration specific forstdoutcollectord.io/stdout-logs-indexcollectord.io/stdout-logs-sourcecollectord.io/stdout-logs-typecollectord.io/stdout-logs-hostcollectord.io/stdout-logs-eventpatterncollectord.io/stdout-logs-replace.{N}-searchcollectord.io/stdout-logs-replace.{N}-valcollectord.io/stdout-logs-hashing.{N}-match- (5.3+)collectord.io/stdout-logs-hashing.{N}-function- (5.3+)collectord.io/stdout-logs-extractioncollectord.io/stdout-logs-extractionMessageField- (5.18+)collectord.io/stdout-logs-timestampfieldcollectord.io/stdout-logs-timestampformatcollectord.io/stdout-logs-timestampsetmonthcollectord.io/stdout-logs-timestampsetdaycollectord.io/stdout-logs-timestamplocationcollectord.io/stdout-logs-joinpartialcollectord.io/stdout-logs-joinmultiline- (5.3+)collectord.io/stdout-logs-escapeterminalsequencescollectord.io/stdout-logs-override.{N}-match- (5.2+)collectord.io/stdout-logs-override.{N}-index- (5.2+)collectord.io/stdout-logs-override.{N}-source- (5.2+)collectord.io/stdout-logs-override.{N}-type- (5.2+)collectord.io/stdout-logs-sampling-percent- (5.6+)collectord.io/stdout-logs-sampling-key- (5.6+)collectord.io/stdout-logs-ThruputPerSecond- (5.10.252+)collectord.io/stdout-logs-TooOldEvents- (5.10.252+)collectord.io/stdout-logs-TooNewEvents- (5.10.252+)collectord.io/stdout-logs-whitelist- (5.14.284+)
- Specific for
stderr, with the annotations below you can define configuration specific forstderrcollectord.io/stderr-logs-indexcollectord.io/stderr-logs-sourcecollectord.io/stderr-logs-typecollectord.io/stderr-logs-hostcollectord.io/stderr-logs-eventpatterncollectord.io/stderr-logs-replace.{N}-searchcollectord.io/stderr-logs-replace.{N}-valcollectord.io/stderr-logs-hashing.{N}-match- (5.3+)collectord.io/stderr-logs-hashing.{N}-function- (5.3+)collectord.io/stderr-logs-extractioncollectord.io/stderr-logs-extractionMessageField- (5.18+)collectord.io/stderr-logs-timestampfieldcollectord.io/stderr-logs-timestampformatcollectord.io/stderr-logs-timestampsetmonthcollectord.io/stderr-logs-timestampsetdaycollectord.io/stderr-logs-timestamplocationcollectord.io/stderr-logs-joinpartialcollectord.io/stderr-logs-joinmultiline- (5.3+)collectord.io/stderr-logs-escapeterminalsequencescollectord.io/stderr-logs-override.{N}-match- (5.2+)collectord.io/stderr-logs-override.{N}-index- (5.2+)collectord.io/stderr-logs-override.{N}-source- (5.2+)collectord.io/stderr-logs-override.{N}-type- (5.2+)collectord.io/stderr-logs-sampling-percent- (5.6+)collectord.io/stderr-logs-sampling-key- (5.6+)collectord.io/stderr-logs-ThruputPerSecond- (5.10.252+)collectord.io/stderr-logs-TooOldEvents- (5.10.252+)collectord.io/stderr-logs-TooNewEvents- (5.10.252+)collectord.io/stderr-logs-whitelist- (5.14.284+)
- Annotations for container stats
collectord.io/stats-index- change the index for the container metrics forwarded from this Podcollectord.io/stats-source- change the source for the container metrics forwarded from this Podcollectord.io/stats-type- change the sourcetype for the container metrics forwarded from this Podcollectord.io/stats-host- change the host for the container metrics forwarded from this Podcollectord.io/stats-output- (5.2+) change the output todevnullorsplunkcollectord.io/stats-interval- (5.14+) override default interval how often to collect statscollectord.io/stats-userfields.{fieldname}- (5.15.300+) attach custom fields to events
- Annotations for container processes stats
collectord.io/procstats-index- change the index for the container process metrics forwarded from this Podcollectord.io/procstats-source- change the source for the container process metrics forwarded from this Podcollectord.io/procstats-type- change the type for the container process metrics forwarded from this Podcollectord.io/procstats-host- change the host for the container process metrics forwarded from this Podcollectord.io/procstats-output- (5.2+) change the output todevnullorsplunkcollectord.io/procstats-userfields.{fieldname}- (5.15.300+) attach custom fields to eventscollectord.io/procstats-hideargs- (5.24.440+) hide the command line arguments for the process
- Annotations for container network stats
collectord.io/netstats-index- change the index for the container network metrics forwarded from this Podcollectord.io/netstats-source- change the source for the container network metrics forwarded from this Podcollectord.io/netstats-type- change the type for the container network metrics forwarded from this Podcollectord.io/netstats-host- change the host for the container network metrics forwarded from this Podcollectord.io/netstats-output- (5.2+) change the output todevnullorsplunkcollectord.io/netstats-interval- (5.14+) override default interval how often to collect statscollectord.io/netstats-userfields.{fieldname}- (5.15.300+) attach custom fields to events
- Annotations for container network socket table
collectord.io/nettable-index- change the index for the container network socket table forwarded from this Podcollectord.io/nettable-source- change the source for the container network socket table forwarded from this Podcollectord.io/nettable-type- change the type for the container network socket table forwarded from this Podcollectord.io/nettable-host- change the host for the container network socket table forwarded from this Podcollectord.io/nettable-output- (5.2+) change the output todevnullorsplunkcollectord.io/nettable-interval- (5.14+) override default interval how often to collect statscollectord.io/nettable-userfields.{fieldname}- (5.15.300+) attach custom fields to events
- Annotations for events (can be applied only to namespaces)
collectord.io/events-index- change the index for the events of specific namespacecollectord.io/events-source- change the source for the events of specific namespacecollectord.io/events-type- change the source type for the events of specific namespacecollectord.io/events-host- change the host for the events of specific namespacecollectord.io/events-userfields.{fieldname}- (5.15.300+) attach custom fields to eventscollectord.io/events-output- (26.04.1+) change the output for the events published on the namespace
- Annotations for application logs
collectord.io/volume.{N}-logs-name- name of the volume attached to Podcollectord.io/volume.{N}-logs-index- target index for logs forwarded from the volumecollectord.io/volume.{N}-logs-output- configure the output for the logs forwarded from the volumecollectord.io/volume.{N}-logs-source- change the source for logs forwarded from the volumecollectord.io/volume.{N}-logs-type- change the type for logs forwarded from the volumecollectord.io/volume.{N}-logs-host- change the host for logs forwarded from the volumecollectord.io/volume.{N}-logs-eventpattern- change the event pattern defining new event for logs forwarded from the volumecollectord.io/volume.{N}-logs-replace.{N}-search- specify the regex search for replace pipe for the logscollectord.io/volume.{N}-logs-replace.{N}-val- specify the regex replace pattern for replace pipe for the logscollectord.io/volume.{N}-logs-hashing.{N}-match- (5.3+) the regexp for a matched valuecollectord.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)collectord.io/volume.{N}-logs-extraction- specify the field extraction with the regex the logscollectord.io/volume.{N}-logs-extractionMessageField- (5.18+) specify the field name for the message (by default first unnamed ground in regexp)collectord.io/volume.{N}-logs-timestampfield- specify the timestamp fieldcollectord.io/volume.{N}-logs-timestampformat- specify the format for timestamp fieldcollectord.io/volume.{N}-logs-timestampsetmonth- define if month should be set to current for timestampcollectord.io/volume.{N}-logs-timestampsetday- define if day should be set to current for timestampcollectord.io/volume.{N}-logs-timestamplocation- define timestamp location if not set by formatcollectord.io/volume.{N}-logs-glob- set the glob pattern for matching logscollectord.io/volume.{N}-logs-match- set the regexp pattern for matching logscollectord.io/volume.{N}-logs-recursive- set if walker should walk the directory recursivecollectord.io/volume.{N}-logs-override.{N}-match- (5.2+) match for override patterncollectord.io/volume.{N}-logs-override.{N}-index- (5.2+) override index for matched eventscollectord.io/volume.{N}-logs-override.{N}-source- (5.2+) override source for matched eventscollectord.io/volume.{N}-logs-override.{N}-type- (5.2+) override type for matched eventscollectord.io/volume.{N}-logs-sampling-percent- (5.6+) specify the % value of logs that should be forwarded to splunkcollectord.io/volume.{N}-logs-sampling-key- (5.6+) regexp pattern to specify the key for the sampling based on hash valuescollectord.io/volume.{N}-logs-ThruputPerSecond- (5.10.252+) set the thruput for this container, maximum amount of logs per second, for example128Kb,1024bcollectord.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,24hcollectord.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,30mcollectord.io/volume.{N}-logs-whitelist- (5.14.284+) allow to configure pattern for log messages, only log messages matching this pattern will be forwarded to Splunkcollectord.io/volume.{N}-logs-userfields.{fieldname}- (5.15.300+) attach custom fields to eventscollectord.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)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 hostcollectord.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
- Annotations for forwarding metrics in Prometheus format
collectord.io/prometheus.{N}-port- (required) specify the port that needs to be used to collect metricscollectord.io/prometheus.{N}-index- specify target index for the metricscollectord.io/prometheus.{N}-source- specify a target source for the metrics (default is/openshift/{openshift_pod_id})collectord.io/prometheus.{N}-type- specify the type for the metrics (default is set in[input.prometheus_auto]of collectord configuration)collectord.io/prometheus.{N}-host- specify the host for the metrics (by default node name is used)collectord.io/prometheus.{N}-path- specify the path in url for the metricscollectord.io/prometheus.{N}-query- (5.17+) specify the raw query in url for the metricscollectord.io/prometheus.{N}-interval- how often to collect metrics, (default is set in[input.prometheus_auto]of collectord configuration)collectord.io/prometheus.{N}-includehelp- include help for metrics (default is false)collectord.io/prometheus.{N}-insecure- insecure if scheme is https (default is false)collectord.io/prometheus.{N}-scheme- scheme (http or https, default is http)collectord.io/prometheus.{N}-username- (5.2+) basic auth usernamecollectord.io/prometheus.{N}-password- (5.2+) basic auth passwordcollectord.io/prometheus.{N}-whitelist- (5.15.300+) whitelist regexpcollectord.io/prometheus.{N}-blacklist- (5.15.300+) blacklist regexpcollectord.io/prometheus.{N}-authorizationkey- (5.16.350+) include Authorization header with the value specified in the ConfigMap under[input.prometheus_auto]collectord.io/prometheus.{N}-caname- (5.16.350+) is used to verify the hostname on the returned certificates unlessinsecureis setcollectord.io/prometheus.{N}-output- (5.23.430+) specify outputcollectord.io/prometheus.{N}-indexType- (5.24.440+) specify the index type for the metrics (default isevents), you can change it tometrics