Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filebeat/inputs/benchmark: runtime error - invalid memory address or nil pointer dereference #42288

Open
mauri870 opened this issue Jan 10, 2025 · 1 comment · May be fixed by #42292
Open

filebeat/inputs/benchmark: runtime error - invalid memory address or nil pointer dereference #42288

mauri870 opened this issue Jan 10, 2025 · 1 comment · May be fixed by #42292
Labels
bug Filebeat Filebeat Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Comments

@mauri870
Copy link
Member

Found a runtime error with the benchmark input in main (future 9.x). I tested with 8.17.0 and the issue is not reproducible.

How to reproduce

  1. Create a config file using the benchmark input:
cat <<EOF > benchbug.yml
logging.level: info
logging.to_stderr: true
filebeat.inputs:
  - type: benchmark
    enabled: true
    message: "This is a test message"
    count: 1
output.console:
  pretty: true
EOF
  1. git checkout main, make sure it is up to date
  2. go run ./x-pack/filebeat -c ./benchbug.yml
  3. Check the logs
{"log.level":"info","@timestamp":"2025-01-10T10:25:09.769-0300","log.logger":"input.benchmark","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/v2/compat.(*runner).Start.func1","file.name":"compat/compat.go","file.line":135},"message":"Input 'benchmark' starting","service.name":"filebeat","id":"E9FF95AF8412E4D9","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2025-01-10T10:25:09.769-0300","log.logger":"input.benchmark","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/v2/compat.(*runner).Start.func1","file.name":"compat/compat.go","file.line":148},"message":"Input 'benchmark' failed with: runtime error: invalid memory address or nil pointer dereference","service.name":"filebeat","id":"E9FF95AF8412E4D9","ecs.version":"1.6.0"}
@mauri870 mauri870 added bug Filebeat Filebeat Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team labels Jan 10, 2025
@elasticmachine
Copy link
Collaborator

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

@leehinman leehinman linked a pull request Jan 10, 2025 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Filebeat Filebeat Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants