From 7234f0a71350194ea1152ec07df2e68b2139be95 Mon Sep 17 00:00:00 2001 From: Chris Mark Date: Wed, 21 Feb 2024 18:40:40 +0200 Subject: [PATCH] Remove accidentaly added sample config (#31367) This PR removes the sample testing config that was added accidentally with https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/30914. cc: @djaglowski Signed-off-by: ChrsMark --- examples/my-config.yaml | 63 ----------------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 examples/my-config.yaml diff --git a/examples/my-config.yaml b/examples/my-config.yaml deleted file mode 100644 index ebc3a2c488a2..000000000000 --- a/examples/my-config.yaml +++ /dev/null @@ -1,63 +0,0 @@ -receivers: - filelog: - include: - #- /var/log/busybox/*.log - - /var/lib/docker/containers/cf79f880f414937e7befa0e4d2770590a19d83058b4f5df0e1cd22d819c836b3/cf79f880f414937e7befa0e4d2770590a19d83058b4f5df0e1cd22d819c836b3-json.log - #storage: file_storage/filelogreceiver - #start_at: beginning - operators: - - id: get-format - routes: - - expr: body matches "^\\{" - output: parser-docker - type: router - - id: parser-docker - timestamp: - layout: '%Y-%m-%dT%H:%M:%S.%LZ' - parse_from: attributes.time - type: json_parser - - from: attributes.log - to: body - type: move - -processors: - transform: - error_mode: ignore - log_statements: - - context: log - statements: - # Parse body as JSON and merge the resulting map with the cache map, ignoring non-json bodies. - # cache is a field exposed by OTTL that is a temporary storage place for complex operations. - - merge_maps(cache, ParseJSON(body), "upsert") where IsMatch(body, "^\\{") - - # Set attributes using the values merged into cache. - # If the attribute doesn't exist in cache then nothing happens. - - set(attributes["message"], cache["message"]) - - set(attributes["severity"], cache["log.level"]) - - merge_maps(attributes, cache, "upsert") - -extensions: - file_storage/filelogreceiver: - directory: /home/chrismark/otelcol/file_storage/freceiver - file_storage/otcouput: - directory: /home/chrismark/otelcol/file_storage/output - -service: - extensions: [file_storage/filelogreceiver, file_storage/otcouput] - pipelines: - logs: - receivers: [filelog] - exporters: [otlp/elastic] - processors: [transform] -# telemetry: -# logs: -# level: "debug" - -exporters: - otlp/elastic: - endpoint: http://0.0.0.0:8200 - sending_queue: - storage: file_storage/otcouput - tls: - insecure: true - insecure_skip_verify: true