Skip to content

Commit

Permalink
try outputting otelcollector log to file
Browse files Browse the repository at this point in the history
  • Loading branch information
bragi92 committed Oct 31, 2023
1 parent febca82 commit 43ac8fd
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ exporters:
retry_on_failure:
enabled: false
timeout: 12s
file:
path: "/opt/microsoft/otelcollector/collector-log.json" # Set the desired output file path
processors:
batch:
send_batch_size: 7000
Expand All @@ -37,8 +39,8 @@ service:
pipelines:
metrics:
receivers: [prometheus]
exporters: [otlp]
processors: [batch,resource]
exporters: [otlp, file] # Include the "file" exporter in the list
processors: [batch, resource]
telemetry:
logs:
level: warn
Expand Down

0 comments on commit 43ac8fd

Please sign in to comment.