geoip-stats-api.asciidoc 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. [[geoip-stats-api]]
  2. === GeoIP stats API
  3. ++++
  4. <titleabbrev>GeoIP stats</titleabbrev>
  5. ++++
  6. Gets download statistics for GeoIP2 databases used with the
  7. <<geoip-processor,`geoip` processor>>.
  8. [source,console]
  9. ----
  10. GET _ingest/geoip/stats
  11. ----
  12. [[geoip-stats-api-request]]
  13. ==== {api-request-title}
  14. `GET _ingest/geoip/stats`
  15. [[geoip-stats-api-prereqs]]
  16. ==== {api-prereq-title}
  17. * If the {es} {security-features} are enabled, you must have the `monitor` or
  18. `manage` <<privileges-list-cluster,cluster privilege>> to use this API.
  19. [role="child_attributes"]
  20. [[geoip-stats-api-response-body]]
  21. ==== {api-response-body-title}
  22. `stats`::
  23. (object)
  24. Download statistics for all GeoIP2 databases.
  25. +
  26. .Properties of `stats`
  27. [%collapsible%open]
  28. ====
  29. `successful_downloads`::
  30. (integer)
  31. Total number of successful database downloads.
  32. `failed_downloads`::
  33. (integer)
  34. Total number of failed database downloads.
  35. `total_download_time`::
  36. (integer)
  37. Total milliseconds spent downloading databases.
  38. `database_count`::
  39. (integer)
  40. Current number of databases available for use.
  41. `skipped_updates`::
  42. (integer)
  43. Total number of database updates skipped.
  44. ====
  45. `nodes`::
  46. (object)
  47. Downloaded GeoIP2 databases for each node.
  48. +
  49. .Properties of `nodes`
  50. [%collapsible%open]
  51. ====
  52. `<node_id>`::
  53. (object)
  54. Downloaded databases for the node. The field key is the node ID.
  55. +
  56. .Properties of `<node_id>`
  57. [%collapsible%open]
  58. =====
  59. `databases`::
  60. (array of objects)
  61. Downloaded databases for the node.
  62. +
  63. .Properties of `databases` objects
  64. [%collapsible%open]
  65. ======
  66. `name`::
  67. (string)
  68. Name of the database.
  69. ======
  70. `files_in_temp`::
  71. (array of strings)
  72. Downloaded database files, including related license files. {es} stores these
  73. files in the node's <<es-tmpdir,temporary directory>>:
  74. `$ES_TMPDIR/geoip-databases/<node_id>`.
  75. =====
  76. ====