Skip to content

docs: fix "Default to be" grammar and two related text defects - #54048

Merged
belimawr merged 3 commits into
elastic:mainfrom
Anshuman-Prakash:docs/text-auditor-53290
Oct 29, 2026
Merged

belimawr merged 3 commits into
elastic:mainfrom
Anshuman-Prakash:docs/text-auditor-53290

Conversation

@Anshuman-Prakash

@Anshuman-Prakash Anshuman-Prakash commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Relates to #53290.

Three text fixes in the reference docs and the config files they are generated from:

  • "Default to be 300 seconds" -> "Defaults to 300 seconds" (60 spots across 16 files).
  • In the AWS Fargate start_position description, "allows user to specify if" -> "allows users to specify whether". The issue listed two spots; there are five, including the x-pack/filebeat/_meta/config/filebeat.inputs.reference.xpack.yml.tmpl template the generated files come from, so I fixed it at the source too.
  • annotations.dedot in the add_kubernetes_metadata docs said . in labels would be replaced; it is annotations.

Docs and config only, plus a doc comment in metricbeat/module/kubernetes/event/event.go. No behaviour change.

- Replace the repeated "Default to be ..." with "Defaults to ..." (66
  occurrences across 19 files), in the module _meta sources, the
  generated modules.d/reference configs and the generated docs.
- "`start_position` allows user to specify if this input should read log
  files" -> "allows users to specify whether", in all five AWS Fargate
  locations including the x-pack input reference template.
- The `annotations.dedot` description said `.` in *labels* would be
  replaced; it describes annotations. Fixed in the asciidoc source, the
  six generated add-kubernetes-metadata pages and the equivalent
  conflation in the dedotConfig doc comment.

Relates to elastic#53290

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Anshuman-Prakash
Anshuman-Prakash requested review from a team as code owners October 24, 2026 14:41
@botelastic botelastic Bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)
  • /test : Run the Buildkite pipeline.

@mergify

mergify Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @Anshuman-Prakash? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.

@belimawr belimawr 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.

@Anshuman-Prakash thanks for the contribution!

The changes look good, however we don't use asciidoc files any more, the ones you edited are leftovers from the migration to markdown that never got correctly deleted. Could you undo the changes on them so this PR focus on updating the md and configuration files.

Another thing, the PR description is very, very long for a simple grammar fix. I'll be honest, I didn't read it. It is too long and looks AI generated. Could you update it to make the PR description more human readable?

The asciidoc files under filebeat/docs/modules/ and
libbeat/processors/add_kubernetes_metadata/docs/ are leftovers from the
migration to markdown and are no longer used, so the equivalent markdown
files already in this PR are the ones that matter.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Anshuman-Prakash

Anshuman-Prakash commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks @belimawr — both done.

I reverted the four asciidoc files (filebeat/docs/modules/{aws,awsfargate,cisco}.asciidoc and libbeat/processors/add_kubernetes_metadata/docs/add_kubernetes_metadata.asciidoc) in b9b279f, so the PR is now markdown and config files only. Each of those asciidoc files had a markdown counterpart already in the diff, so nothing was lost.

Also rewrote the description much shorter. Sorry about the wall of text.

One follow-up, so I stop repeating the mistake: does the same apply to the generated */docs/fields.asciidoc mirrors? A few of my other open docs PRs touch those alongside the _meta/fields.yml source, and #53900 edited filebeat/docs/fields.asciidoc when it merged last week, so I wasn't sure whether those are dead leftovers too. Happy to strip them out of those PRs if so.

@belimawr

Copy link
Copy Markdown
Member

@Anshuman-Prakash what do you mean by "generated */docs/fields.asciidoc mirrors"?

Yeah, all asciidoc files are supposed to be leftover artifacts, there might still be one in use containing some versions our automation reads. But aside from that our current docs system should not be reading/rendering any asciidoc files.

@Anshuman-Prakash

Copy link
Copy Markdown
Contributor Author

Sorry, I was vague. I meant the per-beat <beat>/docs/fields.asciidoc files — filebeat/docs/fields.asciidoc, heartbeat/..., packetbeat/..., metricbeat/.... Those look different from the module leftovers to me, because they're still generated, not just abandoned:

  • filebeat/magefile.go:206 (fieldDocs) and metricbeat/magefile.go:184 (FieldsDocs) write them from the _meta/fields.yml sources, and Update() at filebeat/magefile.go:130 has fieldDocs in its SerialDeps.
  • .buildkite/filebeat/filebeat-pipeline.yml:54 runs make -C filebeat check update and then make check-no-changes, which is git diff-index --exit-code HEAD. Same pair in the heartbeat, packetbeat and x-pack/metricbeat pipelines.

So if I fix a typo in an x-pack _meta/fields.yml and don't update the mirror, that check step regenerates it and the build fails on a dirty tree. That's why I'd been editing both — not because I thought anyone reads the asciidoc.

If they really are dead, the fix is probably to drop fieldDocs/FieldsDocs from the Update targets and delete the files, rather than have contributors keep them in sync. Happy to open a separate PR for that if you want it, but it's your call — I didn't want to rip out a mage target on my own initiative.

there might still be one in use containing some versions our automation reads

That's libbeat/docs/version.asciidoc. It's read by .buildkite/pipeline.yml:283, deploy/kubernetes/Makefile:3 and libbeat/scripts/Makefile:90 (both head -n 1 ... | cut -c 17-), dev-tools/cmd/update_go/update_go_version.go:33, dev-tools/mage/settings.go:447, and .github/workflows/updatecli.d/bump-golang.yml:118 bumps it.

In the meantime I'll leave asciidoc out of new PRs. I have four older PRs that already carry approvals and touch a fields.asciidoc (#54046, #53898, #53899, #53901) — tell me if you'd like those stripped too and I'll push to each; I left them alone so far rather than reset the approvals.

@belimawr belimawr added Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team skip-changelog labels Oct 27, 2026
@botelastic botelastic Bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Oct 27, 2026
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@belimawr belimawr added the backport-active-9 Automated backport with mergify to all the active 9.[0-9]+ branches label Oct 27, 2026
@belimawr belimawr self-assigned this Oct 27, 2026

@vishaangelova vishaangelova 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 for the docs

@mergify

mergify Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@belimawr
belimawr merged commit 1c623fe into elastic:main Oct 29, 2026
96 of 97 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

@Mergifyio backport 9.6 9.5 9.4

@mergify

mergify Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

vishaangelova pushed a commit that referenced this pull request Oct 29, 2026
… (#54216)

Relates to #53290


---------




(cherry picked from commit 1c623fe)

Co-authored-by: Anshuman Prakash <nakulsrivastava2004@gmail.com>
Co-authored-by: Anshuman Prakash <199287261+Anshuman-Prakash@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Tiago Queiroz <tiago.queiroz@elastic.co>
vishaangelova pushed a commit that referenced this pull request Oct 29, 2026
… (#54217)

Relates to #53290


---------




(cherry picked from commit 1c623fe)

Co-authored-by: Anshuman Prakash <nakulsrivastava2004@gmail.com>
Co-authored-by: Anshuman Prakash <199287261+Anshuman-Prakash@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Tiago Queiroz <tiago.queiroz@elastic.co>
ebeahan pushed a commit that referenced this pull request Oct 29, 2026
… (#54215)

Relates to #53290


---------




(cherry picked from commit 1c623fe)

Co-authored-by: Anshuman Prakash <nakulsrivastava2004@gmail.com>
Co-authored-by: Anshuman Prakash <199287261+Anshuman-Prakash@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Tiago Queiroz <tiago.queiroz@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-9 Automated backport with mergify to all the active 9.[0-9]+ branches skip-changelog Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants