Skip to content

Instantly share code, notes, and snippets.

@palashkulsh
Last active April 18, 2018 13:47
Show Gist options
  • Save palashkulsh/0d7ae180da385258f1453b41d3f62a02 to your computer and use it in GitHub Desktop.
Save palashkulsh/0d7ae180da385258f1453b41d3f62a02 to your computer and use it in GitHub Desktop.
find unmatched patterns
curl -s 'https://endpoint/orders/mktorders-49*/_mapping' | jq '.' | jq '.[].mappings.items.properties |keys[]' | sort|uniq | sed 's/"//g' | xargs -I {} sh -c "if ! grep -q {} config/staging/elasticsearch_mapping.txt ; then echo {} ;fi;" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment