[text-auditor] Fix clear runtime error text typos in GCS, Winlogbeat, and Filestream messages
- Dominant language
- Go
- Stars
- 12.7k
- Forks
- 5k
- Avg merge
- 2d 15m
- Merged PRs (30d)
- 385
Description
## Text Improvements
The following user-facing text issues were found in the repository. Each is a low-effort fix.
### 1. Redundant phrase in GCS runtime errors (`job with job id`)
**File:** `x-pack/filebeat/input/gcs/job.go` (line 351)
**Current text:** `job with job id %s encountered an unmarshaling error: %w`
**Suggested fix:** `job with ID %s encountered an unmarshaling error: %w`
**Why:** The phrase `job with job id` is awkward and redundant in a user-visible runtime error.
**File:** `x-pack/filebeat/input/gcs/job.go` (line 389)
**Current text:** `job with job id %s encountered a marshaling error: %w`
**Suggested fix:** `job with ID %s encountered a marshaling error: %w`
**Why:** Same wording defect as above; this should be fixed as one family.
### 2. Duplicated word in Winlogbeat runtime error (`for for`)
**File:** `winlogbeat/sys/wineventlog/metadata_store.go` (line 481)
**Current text:** `failed to get message string using message ID %v for for event ID %v: %w`
**Suggested fix:** `failed to get message string using message ID %v for event ID %v: %w`
**Why:** Clear duplicated-word typo in a user-facing error.
### 3. Article grammar error in Filestream runtime error (`a os.File`)
**File:** `filebeat/input/filestream/input.go` (line 527)
**Current text:** `failed to create a File from a os.File: %w`
**Suggested fix:** `failed to create a File from an os.File: %w`
**Why:** Clear grammatical error in a user-facing error message.
## Suggested Actions
- [ ] Replace `job with job id` with `job with ID` in both `x-pack/filebeat/input/gcs/job.go` occurrences.
- [ ] Remove duplicated `for` in `winlogbeat/sys/wineventlog/metadata_store.go`.
- [ ] Fix article usage (`a` → `an`) in `filebeat/input/filestream/input.go`.
---
[What is this?](https://ela.st/github-ai-tools) | [From workflow: Text Auditor](https://github.com/elastic/beats/actions/runs/32732272234)
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.
> - [x] expires on Aug 31, 2026, 1:32 PM UTC
Contributor guide
Research direction
Inspect the specified messages in x-pack/filebeat/input/gcs/job.go, winlogbeat/sys/wineventlog/metadata_store.go, and filebeat/input/filestream/input.go. Search for the listed strings and review the surrounding error construction before checking the affected Go packages. Done means all four wording defects are corrected consistently without changing error behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 82/100