Tool to check that documents end up with same fields in elasticsearch
Approach
Setup
ingest documents into elasticsearch with method 1 (example elastic-agent with elasticsearch output), required that documents contain a unique field
ingest documents into elasticsearch again with method 2 (example elastic-agent with shipper), required that same source event will produce same unique field as in method 1
docdiff
query elasticsearch with field name & unique value
query should return 2 results
flatten responses (change nesting to dot notation)
remove fields we expect to have changed (example, agent.id or @timestamp)