Skip to content

Fix inaccurate Elastic Agent standalone logging config docs#6097

Merged
alexandra5000 merged 6 commits into
elastic:mainfrom
alexandra5000:fix/elastic-agent-logging-config-docs
Apr 27, 2026
Merged

Fix inaccurate Elastic Agent standalone logging config docs#6097
alexandra5000 merged 6 commits into
elastic:mainfrom
alexandra5000:fix/elastic-agent-logging-config-docs

Conversation

@alexandra5000

@alexandra5000 alexandra5000 commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Clarifies that Elastic Agent always writes to an internal set of rotating log files that cannot be disabled or reconfigured, and documents the per-platform paths for those internal logs.
  • Documents that external logging outputs (to_stderr, to_syslog, to_eventlog, to_files) are mutually exclusive and silently follow a priority order: to_stderr > to_syslog > to_eventlog > to_files.
  • Updates the example configuration to include to_stderr: false, showing the correct way to enable file logging.
  • Corrects the default for agent.logging.to_files from true to false.

Closes #5780

🤖 Generated with Claude Code

@alexandra5000 alexandra5000 marked this pull request as ready for review April 23, 2026 14:30
@alexandra5000 alexandra5000 requested a review from a team as a code owner April 23, 2026 14:30
@alexandra5000 alexandra5000 requested a review from swiatekm April 23, 2026 14:33
@github-actions

github-actions Bot commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

🔍 Preview links for changed docs

@github-actions

github-actions Bot commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

✅ Vale Linting Results

No issues found on modified lines!


The Vale linter checks documentation changes against the Elastic Docs style guide.

To use Vale locally or report issues, refer to Elastic style guide for Vale.

@theletterf theletterf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexandra5000 alexandra5000 enabled auto-merge (squash) April 27, 2026 11:16
@github-actions

Copy link
Copy Markdown
Contributor

Elastic Docs AI PR menu

Check the box to run an AI review for this pull request.

  • Review docs changes (docs-review). Status: not started.

Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.

@alexandra5000 alexandra5000 merged commit 6baae45 into elastic:main Apr 27, 2026
11 of 12 checks passed
@alexandra5000 alexandra5000 deleted the fix/elastic-agent-logging-config-docs branch April 27, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Internal]: Elastic Agent Logging Configuration documentation is inaccurate and misleading

3 participants