Advertisement
Guest User

type count

a guest
Sep 1st, 2015
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. curl 'localhost:9200/logstash-2015.09.01/_search?search_type=count&pretty' -d '{
  2. "facets": {
  3. "count_by_type": {
  4. "terms": {
  5. "field": "_type"
  6. }}}}'
  7. {
  8. "took" : 5,
  9. "timed_out" : false,
  10. "_shards" : {
  11. "total" : 1,
  12. "successful" : 1,
  13. "failed" : 0
  14. },
  15. "hits" : {
  16. "total" : 1473,
  17. "max_score" : 0.0,
  18. "hits" : [ ]
  19. },
  20. "facets" : {
  21. "count_by_type" : {
  22. "_type" : "terms",
  23. "missing" : 0,
  24. "total" : 1473,
  25. "other" : 0,
  26. "terms" : [ {
  27. "term" : "logs",
  28. "count" : 962
  29. }, {
  30. "term" : "syslog",
  31. "count" : 511
  32. } ]
  33. }
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement