Kubernetes Events Timestamp

Kubernetes Events Timestamp Filter

Overview

Fluentd Filter plugin to select particular timestamp into an additional field

Configuration

KubeEventsTimestampConfig

timestamp_fields ([]string, optional)

Time field names in order of relevance

Default: event.eventTime, event.lastTimestamp, event.firstTimestamp

mapped_time_key (string, optional)

Added time field name

Default: triggerts

Example Kubernetes Events Timestamp filter configurations

apiVersion: logging.banzaicloud.io/v1beta1
kind: Flow
metadata:
 name: es-flow
spec:
 filters:
   - kube_events_timestamp:
       timestamp_fields:
         - "event.eventTime"
         - "event.lastTimestamp"
         - "event.firstTimestamp"
       mapped_time_key: mytimefield
 selectors: {}
 localOutputRefs:
   - es-output

Fluentd Config Result

<filter **>
@type kube_events_timestamp
@id test-kube-events-timestamp
timestamp_fields ["event.eventTime","event.lastTimestamp","event.firstTimestamp"]
mapped_time_key mytimefield
</filter>