Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Investigate way to prove events ingested with & without shipper are functionally the same #257

Closed
Tracked by #197 ...
leehinman opened this issue Feb 22, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request Team:Elastic-Agent Label for the Agent team

Comments

@leehinman
Copy link
Contributor

We need an automated way to verify that events ingested with or without the shipper are functionally equal. Currently we are missing @timestamp when using the shipper but other interesting areas are timestamp formatting, floating point numbers, numbers at 32 & 64 bit max, etc.

@leehinman leehinman added enhancement New feature or request Team:Elastic-Agent Label for the Agent team labels Feb 22, 2023
@pierrehilbert
Copy link
Contributor

To split in two steps: one to handle in sprint 8 (manual testing) and one in sprint 9

@leehinman
Copy link
Contributor Author

manual inspection when using the "Custom Log Package" shows that only the following fields are different between events that are ingested with or without the shipper

  • _source.@timestamp
  • _source.agent.ephemeral_id
  • _source.agent.id
  • _source.elastic_agent.id

We would expect these fields to be different because the events were ingested at different times and by different installations of elastic-agent which would result in a different id.

Also POC of code to check this in an automated fashion exists at https://github.com/leehinman/docdiff and running that utility on a variety of documents show the same thing.

@leehinman
Copy link
Contributor Author

added #290 so we can add this as an e2e test when those tests are available. And closing for now since we have a way to check until the e2e tests exist.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

No branches or pull requests

2 participants