Skip to content

Conversation

@belimawr
Copy link
Contributor

Proposed commit message

v2.Context.StatusReporter can be nil when Filebeat runs standalone. The direct access to this field is replaced in Filestream by the UpdateStatus method. A deprecation notice is added is added to the StatusReporter field.

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. Where relevant, I have used the stresstest.sh script to run them under stress conditions and race detector to verify their stability.
  • I have added an entry in ./changelog/fragments using the changelog tool.

## Disruptive User Impact
## Author's Checklist

How to test this PR locally

1. Create a log file

docker run -it --rm mingrammer/flog -n 50 > /tmp/flog.ndjson

2. Run Filebeat with the following configuration

filebeat.yml

filebeat.inputs:
  - type: filestream
    id: filestream-input-id
    paths:
      - /tmp/flog.log
    processors:
      - add_fields:
          INVALID_CONFIG_KEY: true
          fields:
            labels:
              foo: bar

logging:
  to_stderr: true

output.discard:
  enabled: true

It should not panic

## Related issues
## Use cases
## Screenshots
## Logs

v2.Context.StatusReporter can be nil when Filebeat runs
standalone. The direct access to this field is replaced in Filestream
by the UpdateStatus method. A deprecation notice is added is added to
the StatusReporter field.
@belimawr belimawr self-assigned this Dec 12, 2025
@belimawr belimawr added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label Dec 12, 2025
@belimawr belimawr requested a review from a team as a code owner December 12, 2025 22:57
@belimawr belimawr added the backport-active-all Automated backport with mergify to all the active branches label Dec 12, 2025
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Dec 12, 2025
@elasticmachine
Copy link
Contributor

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

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Dec 12, 2025
@github-actions
Copy link
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@belimawr belimawr enabled auto-merge (squash) December 12, 2025 23:20
@belimawr belimawr merged commit 72314a0 into elastic:main Dec 12, 2025
29 of 33 checks passed
@github-actions
Copy link
Contributor

@Mergifyio backport 8.19 9.1 9.2

@mergify
Copy link
Contributor

mergify bot commented Dec 12, 2025

backport 8.19 9.1 9.2

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Dec 12, 2025
v2.Context.StatusReporter can be nil when Filebeat runs
standalone. The direct access to this field is replaced in Filestream
by the UpdateStatus method. A deprecation notice is added is added to
the StatusReporter field.

(cherry picked from commit 72314a0)

# Conflicts:
#	filebeat/input/filestream/internal/input-logfile/harvester.go
mergify bot pushed a commit that referenced this pull request Dec 12, 2025
v2.Context.StatusReporter can be nil when Filebeat runs
standalone. The direct access to this field is replaced in Filestream
by the UpdateStatus method. A deprecation notice is added is added to
the StatusReporter field.

(cherry picked from commit 72314a0)

# Conflicts:
#	filebeat/input/filestream/internal/input-logfile/harvester.go
mergify bot pushed a commit that referenced this pull request Dec 12, 2025
v2.Context.StatusReporter can be nil when Filebeat runs
standalone. The direct access to this field is replaced in Filestream
by the UpdateStatus method. A deprecation notice is added is added to
the StatusReporter field.

(cherry picked from commit 72314a0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-all Automated backport with mergify to all the active branches 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.

3 participants