Skip to content

Tool to check that documents end up with same fields in elasticsearch

License

Notifications You must be signed in to change notification settings

leehinman/docdiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docdiff

Tool to check that documents end up with same fields in elasticsearch

Approach

Setup

  1. ingest documents into elasticsearch with method 1 (example elastic-agent with elasticsearch output), required that documents contain a unique field
  2. 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

  1. query elasticsearch with field name & unique value
  2. query should return 2 results
  3. flatten responses (change nesting to dot notation)
  4. remove fields we expect to have changed (example, agent.id or @timestamp)
  5. diff responses

About

Tool to check that documents end up with same fields in elasticsearch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages