migratecheckpoint

command
v0.49.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

README

Migrating Fluentd's Position File to Otel Checkpoints

This package provides a simple program to read Fluentd's position information from position file and store it in the format of Otel's checkpoints database in file_storage extension.

Intended Use Case

Its primary intended use is as a initContainer in kubernetes for users who have been using fluentd as a logging agent but wants to use OpenTelemetry Collector.

Configuration

Environment variables are used to configure it. These are currently available variables and its default values.

- name: CONTAINER_LOG_PATH_FLUENTD
  value: "/var/log/splunk-fluentd-containers.log.pos"
- name: CONTAINER_LOG_PATH_OTEL
  value: "/var/lib/otel_pos/receiver_filelog_"
- name: CUSTOM_LOG_PATH_FLUENTD
  value: "/var/log/splunk-fluentd-*.pos"
- name: CUSTOM_LOG_PATH_OTEL
  value: "/var/lib/otel_pos/receiver_filelog_"
- name: CUSTOM_LOG_CAPTURE_REGEX
  value: "\\/splunk\\-fluentd\\-(?P<name>[\\w0-9-_]+)\\.pos"
- name: JOURNALD_LOG_PATH_FLUENTD
  value: "/var/log/splunkd-fluentd-journald-*.pos.json"
- name: JOURNALD_LOG_PATH_OTEL
  value: "/var/lib/otel_pos/receiver_journald_"
- name: JOURNALD_LOG_CAPTURE_REGEX
  value: "\\/splunkd\\-fluentd\\-journald\\-(?P<name>[\\w0-9-_]+)\\.pos\\.json"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL