Skip to content

Commit 54346c9

Browse files
committed
debug v2 endpoints: otlpjsonfile
1 parent 5f4eb56 commit 54346c9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

otelcol-config.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ receivers:
5959
timestamp:
6060
parse_from: attributes.time
6161
layout: '%Y-%m-%d %H:%M:%S'
62+
otlpjsonfile:
63+
include:
64+
- "/var/log/*.log"
65+
exclude:
66+
- "/var/log/example.log"
67+
6268
processors:
6369
batch:
6470
timeout: 10s
@@ -124,6 +130,6 @@ service:
124130
processors: [resourcedetection, batch]
125131
exporters: [otlphttp/grafana_cloud, debug]
126132
logs:
127-
receivers: [otlp, filelog]
133+
receivers: [otlp, filelog, otlpjsonfile]
128134
processors: [batch]
129135
exporters: [loki, otlphttp/grafana_cloud, debug]

0 commit comments

Comments
 (0)