Skip to content

Fix Google Workspace field typo and CometD retry log text - #54046

Merged
vishaangelova merged 2 commits into
elastic:mainfrom
Anshuman-Prakash:fix/text-auditor-53373-fields-cometd
Oct 30, 2026
Merged

vishaangelova merged 2 commits into
elastic:mainfrom
Anshuman-Prakash:fix/text-auditor-53373-fields-cometd

Conversation

@Anshuman-Prakash

Copy link
Copy Markdown
Contributor

Proposed commit message

Fix Google Workspace field typo and CometD retry log text

- "the acccess scope was changed" -> "access" in the
  google_workspace.drive.target_domain description, in the _meta source
  and in both generated mirrors.
- Reword the CometD collection-retry log message. "Retrying...! facing
  issue while collecting data from CometD" becomes "retrying: error
  while collecting data from CometD", matching the lowercase,
  unpunctuated style of the other log calls in the same file.

Relates to #53373 — this covers items 3 and 4. Items 1 and 2 are in #54045, split out because they are .md-only and so skip Buildkite entirely.

1. acccess -> access (item 3)

google_workspace.drive.target_domain description. Changed in the _meta source and both generated mirrors, so make update stays a no-op:

File Kind
x-pack/filebeat/module/google_workspace/drive/_meta/fields.yml source
docs/reference/filebeat/exported-fields-google_workspace.md generated
filebeat/docs/fields.asciidoc generated

The same sentence uses the correct spelling later on ("the access scope was changed for all domains"), so the first instance was simply a typo.

Completeness pass on acccess repo-wide. Four other hits exist and are all deliberately left alone, because they are captured sample data rather than our own text:

  • x-pack/filebeat/module/azure/signinlogs/test/test-non-interactive-user-signin.log
  • x-pack/filebeat/module/azure/signinlogs/test/test-non-interactive-user-signin.log-expected.json (x2)

Those are a verbatim Azure sign-in log and its expected output, where acccess is inside a customer-authored Conditional Access policy name ("Block all guest acccess apart from SharePoint Online"). Correcting it would desynchronise the fixture from its expected JSON and break the module test.

This typo is not in any packed include/fields.go: google_workspace is an x-pack module and does not appear in the OSS filebeat/include/fields.go payload (verified by decompressing it), and x-pack/filebeat/include/ holds only list.go / list_securityonly.go.

2. CometD retry log message (item 4)

x-pack/filebeat/input/cometd/input.go:95

-in.log.Errorw("Retrying...! facing issue while collecting data from CometD", "error", e.Error())
+in.log.Errorw("retrying: error while collecting data from CometD", "error", e.Error())

The issue suggests Retrying: facing an issue while collecting data from CometD. I used a slightly shorter wording for two reasons, and am happy to switch if you would rather the suggestion landed verbatim:

  • "facing an issue" is redundant here. This is Errorw, and the underlying error is already attached as the structured error field, so the message only needs to say what was happening.
  • Style match. Every other log call in this same file is lowercase with no trailing punctuation — "not able to get access token", "got error while running input", "invalid JSON", "error while parsing JSON". The new text follows that, and "error while collecting data from CometD" directly mirrors the existing "error while parsing JSON".

Either way the malformed ...! is gone.

Testing

$ gofmt -l x-pack/filebeat/input/cometd/      # no output
$ go build ./x-pack/filebeat/input/cometd/    # ok
$ go vet   ./x-pack/filebeat/input/cometd/    # ok
$ go test  ./x-pack/filebeat/input/cometd/
ok  github.com/elastic/beats/v7/x-pack/filebeat/input/cometd  2.790s

No test asserts on the old log string (checked for Retrying and facing issue repo-wide), so nothing else needed updating.

Notes

Text-only: a field description and one log message. No behaviour, schema or field-name change — google_workspace.drive.target_domain keeps its name and keyword type — so no changelog fragment.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc

(Tests and changelog are not applicable to a description/log-text fix; the generated field docs were regenerated in-place.)

🤖 Generated with Claude Code

- "the acccess scope was changed" -> "access" in the
  google_workspace.drive.target_domain description, in the _meta source
  and in both generated mirrors.
- Reword the CometD collection-retry log message. "Retrying...! facing
  issue while collecting data from CometD" becomes "retrying: error
  while collecting data from CometD", matching the lowercase,
  unpunctuated style of the other log calls in the same file.

Relates to elastic#53373

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:33
@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.

@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

@efd6 efd6 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

drive fields change LGTM

@efd6

efd6 commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

/test

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

Copy link
Copy Markdown
Contributor Author

x-pack/filebeat: check/update was failing here and it was my fault: I edited google_workspace/drive/_meta/fields.yml without regenerating the packed x-pack/filebeat/module/google_workspace/fields.go, so check-no-changes saw a dirty tree. Fixed in e34c3ae.

Regenerated with the toolchain pinned from .go-version, per @marc-gr's note on #54120 — running the generator over all of x-pack/filebeat/module leaves only google_workspace/fields.go modified, so no other module's blob moved.

While in that file I also fixed one more defect on line 38, two fields above the one this PR already changes: Only populated for for events relating to a Team Drive → for events. It's listed separately in #52807, but it shares this PR's fields.yml and packed asset, so fixing it anywhere else would have meant a conflicting regeneration of the same blob. The rest of #52807 is in a separate PR.

@vishaangelova @efd6 — sorry for the extra round; could one of you re-run /test?

@vishaangelova

Copy link
Copy Markdown
Member

/test

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

@vishaangelova vishaangelova added docs backport-skip Skip notification from the automated backport with mergify skip-changelog backport-9.6 Automated backport to the 9.6 branch Team:Docs Label for the Observability docs team and removed backport-skip Skip notification from the automated backport with mergify needs_team Indicates that the issue/PR needs a Team:* label labels Oct 30, 2026
@vishaangelova
vishaangelova merged commit daed239 into elastic:main Oct 30, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-9.6 Automated backport to the 9.6 branch docs skip-changelog Team:Docs Label for the Observability docs team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants