Last active
December 28, 2017 01:00
-
-
Save miceno/a80d6ce310a2a74fa16a368bc0387ae4 to your computer and use it in GitHub Desktop.
Number of documents of an elasticsearch index
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# elasticsearch url | |
URL=https://smartnotifications-9383428543.eu-central-1.bonsaisearch.net | |
curl -s $URL/logstash-nginx-*/_count | sed -e 's/^.*"count":\([^,]*\),.*$/\1/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment