-
Notifications
You must be signed in to change notification settings - Fork 154
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
otel: add test for document equivalence between agent filestream input and filebeat receiver #6681
Conversation
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if you add the default processors listed at https://github.com/elastic/beats/blob/76f40863c9918ee1a691a2bb29cbab98a5d83878/x-pack/filebeat/cmd/root.go#L48 and add the processors listed in the generate.go below you should get a much shorter list of fields to ignore.
0d77c63
to
4f8c12d
Compare
f751674
to
c0f6415
Compare
d022ccb
to
9359f0c
Compare
I don't think the failing tests are related to this PR:
Will update the branch to have them running again and hope the gateway failure was temporary |
5b5e4cd
to
541729d
Compare
This pull request is now in conflicts. Could you fix it? 🙏
|
351981b
to
7de70ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
…t and filebeat receiver (#6681) * otel: add test for agent hybrid * add missing fingerprint config options to index small files * ensure new lines are written to the input file * disable compression level so we inspect the requests * add queue timeout to normal beats and separate path.home for fbreceiver * add path.home for normal filebeat * fix agent not starting * print elastic-agent output if test fails * add note for metadata field * fail if ignored field is not present in both maps * add host metadata processor, remove 'host.*' from ignored fields * Use global processor * more strict rules for ignored fields to avoid false positives * use add_fields to add missing fields, use a single index * add add_cloud_metadata processor * avoid checking cmd.Wait error since it is bogus (cherry picked from commit 41882ac)
…t and filebeat receiver (#6681) * otel: add test for agent hybrid * add missing fingerprint config options to index small files * ensure new lines are written to the input file * disable compression level so we inspect the requests * add queue timeout to normal beats and separate path.home for fbreceiver * add path.home for normal filebeat * fix agent not starting * print elastic-agent output if test fails * add note for metadata field * fail if ignored field is not present in both maps * add host metadata processor, remove 'host.*' from ignored fields * Use global processor * more strict rules for ignored fields to avoid false positives * use add_fields to add missing fields, use a single index * add add_cloud_metadata processor * avoid checking cmd.Wait error since it is bogus (cherry picked from commit 41882ac)
…t and filebeat receiver (#6681) (#6868) * otel: add test for agent hybrid * add missing fingerprint config options to index small files * ensure new lines are written to the input file * disable compression level so we inspect the requests * add queue timeout to normal beats and separate path.home for fbreceiver * add path.home for normal filebeat * fix agent not starting * print elastic-agent output if test fails * add note for metadata field * fail if ignored field is not present in both maps * add host metadata processor, remove 'host.*' from ignored fields * Use global processor * more strict rules for ignored fields to avoid false positives * use add_fields to add missing fields, use a single index * add add_cloud_metadata processor * avoid checking cmd.Wait error since it is bogus (cherry picked from commit 41882ac) Co-authored-by: Mauri de Souza Meneguzzo <[email protected]>
…t and filebeat receiver (#6681) (#6867) * otel: add test for agent hybrid * add missing fingerprint config options to index small files * ensure new lines are written to the input file * disable compression level so we inspect the requests * add queue timeout to normal beats and separate path.home for fbreceiver * add path.home for normal filebeat * fix agent not starting * print elastic-agent output if test fails * add note for metadata field * fail if ignored field is not present in both maps * add host metadata processor, remove 'host.*' from ignored fields * Use global processor * more strict rules for ignored fields to avoid false positives * use add_fields to add missing fields, use a single index * add add_cloud_metadata processor * avoid checking cmd.Wait error since it is bogus (cherry picked from commit 41882ac) Co-authored-by: Mauri de Souza Meneguzzo <[email protected]>
What does this PR do?
This PR adds a test that compares a log line ingested by a filestream agent input and a filebeat OTel receiver with equivalent configuration.
Checklist
./changelog/fragments
using the changelog toolRelated issues