[8.x](backport #5833) Add filebeat receiver to otel mode #5894
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.





What does this PR do?
Adds filebeat receiver as an otel receiver. This is a re-introduction of code that was added in #5672, that had to be reverted because the import of the beats code base was causing issues with command line parsing. The issues in the beats code base have been fixed, so we are re-introducing this change.
Why is it important?
This is the first beat receiver, and this will allow us to test the feasibility of running beats as otel receivers.
Checklist
./changelog/fragmentsusing the changelog toolDisruptive User Impact
should be 0 user impact of existing configurations
How to test this PR locally
Use something like the following as
otel.yml, and runelastic-agent otel --config otel.ymlThis will run the beat receiver, which will produce one event.
The event should be written to the path you specify in the
file/no_rotationsection.Related issues
Questions to ask yourself
This is an automatic backport of pull request #5833 done by [Mergify](https://mergify.com).