Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

collector: add set rewrites configurability #26

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

alltilla
Copy link
Member

@alltilla alltilla commented Dec 11, 2023

Example to copy the time field from the kubernetes metadata to the top level

daemonset:
  enabled: true
config:
  sources:
    kubernetes:
      enabled: true
      prefix: "kubernetes#"
      keyDelimiter: "#"
  rewrites:
    set:
      time: "${kubernetes#time}"
  destinations:
    network:
    - transport: tcp
      address: logging-syslog-ng.logging.svc.cluster.local
      port: 601
      template: "$(format-json --key-delimiter # --scope all-nv-pairs)\\n"
      extraOptionsRaw: "time-reopen(10)"

@alltilla alltilla requested a review from pepov December 11, 2023 12:10
@pepov pepov merged commit 5e12c85 into axoflow:master Dec 11, 2023
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants