-
Notifications
You must be signed in to change notification settings - Fork 159
Add new troubleshooting page: Enable debug logging (for EDOT Collector) #2230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c15132e
Add enable-debug-logging.md
alexandra5000 3549baf
Update troubleshoot/ingest/opentelemetry/edot-collector/enable-debug-…
theletterf 1d678a7
Merge branch 'main' into debug-logging
theletterf 9c6b1eb
Merge branch 'main' into debug-logging
theletterf 878b443
Change incorrect examples
alexandra5000 c955d39
Merge branch 'main' into debug-logging
alexandra5000 838d5ba
Merge remote-tracking branch 'upstream/main' into debug-logging
alexandra5000 97c3182
Apply comments
alexandra5000 92b2337
Merge branch 'main' into debug-logging
alexandra5000 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
troubleshoot/ingest/opentelemetry/edot-collector/enable-debug-logging.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- | ||
navigation_title: Enable debug logging | ||
description: Learn how to enable debug logging for the EDOT Collector in supported environments. | ||
applies_to: | ||
stack: | ||
serverless: | ||
observability: | ||
product: | ||
edot_collector: ga | ||
products: | ||
- id: cloud-serverless | ||
- id: observability | ||
- id: edot-collector | ||
--- | ||
|
||
# Enable debug logging | ||
|
||
You can enable debug logging in the Elastic Distributions of OpenTelemetry (EDOT) Collector by setting the `--log-level=debug` flag. This is useful when troubleshooting startup issues or configuration problems. | ||
|
||
This guide shows how to enable debug logging in different environments. | ||
|
||
## Standalone EDOT Collector | ||
|
||
If you're running the EDOT Collector directly, add the flag to your command: | ||
|
||
```bash | ||
edot-collector --config=/path/to/otel-collector-config.yaml --log-level=debug | ||
``` | ||
|
||
This increases log verbosity and helps surface misconfigurations. | ||
|
||
## Kubernetes (Helm deployment) | ||
|
||
If you're deploying the EDOT Collector using the Elastic Helm charts, set the `logLevel` in your values file or CLI override: | ||
|
||
```yaml | ||
logLevel: debug | ||
``` | ||
|
||
Example usage with `helm install`: | ||
|
||
```bash | ||
helm upgrade --install my-collector elastic/otel-collector \ | ||
--set logLevel=debug | ||
``` | ||
|
||
This adds `--log-level=debug` to the Collector container’s command line. | ||
|
||
## Other environments | ||
|
||
Standalone and Kubernetes are currently the only officially supported deployment environments for the EDOT Collector. | ||
|
||
However, if you're running the Collector in a different context, such as a manually containerized setup, you can still enable debug logging by passing the `--log-level=debug` flag as a runtime argument: | ||
|
||
```bash | ||
otel-collector --config=/path/to/config.yaml --log-level=debug | ||
``` | ||
|
||
:::{{note}} | ||
Debug logging for the Collector is not currently configurable through {{fleet}}. | ||
::: | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.