Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl 'localhost:9200/logstash-2015.09.01/_search?search_type=count&pretty' -d '{
- "facets": {
- "count_by_type": {
- "terms": {
- "field": "_type"
- }}}}'
- {
- "took" : 5,
- "timed_out" : false,
- "_shards" : {
- "total" : 1,
- "successful" : 1,
- "failed" : 0
- },
- "hits" : {
- "total" : 1473,
- "max_score" : 0.0,
- "hits" : [ ]
- },
- "facets" : {
- "count_by_type" : {
- "_type" : "terms",
- "missing" : 0,
- "total" : 1473,
- "other" : 0,
- "terms" : [ {
- "term" : "logs",
- "count" : 962
- }, {
- "term" : "syslog",
- "count" : 511
- } ]
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement