-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update GeoIP processor documentation (#71211)
This PR adds documentation for GeoIPv2 auto-update feature. It also changes related settings names from geoip.downloader.* to ingest.geoip.downloader to have the same convention as current setting. Relates to #68920 Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: James Rodewig <[email protected]>
- Loading branch information
1 parent
d1c3b71
commit 308aee2
Showing
14 changed files
with
243 additions
and
42 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
[[geoip-stats-api]] | ||
=== GeoIP stats API | ||
++++ | ||
<titleabbrev>GeoIP stats</titleabbrev> | ||
++++ | ||
|
||
Gets download statistics for GeoIP2 databases used with the | ||
<<geoip-processor,`geoip` processor>>. | ||
|
||
[source,console] | ||
---- | ||
GET _ingest/geoip/stats | ||
---- | ||
|
||
[[geoip-stats-api-request]] | ||
==== {api-request-title} | ||
|
||
`GET _ingest/geoip/stats` | ||
|
||
[[geoip-stats-api-prereqs]] | ||
==== {api-prereq-title} | ||
|
||
* If the {es} {security-features} are enabled, you must have the `monitor` or | ||
`manage` <<privileges-list-cluster,cluster privilege>> to use this API. | ||
|
||
* If <<ingest-geoip-downloader-enabled,`ingest.geoip.downloader.enabled`>> is | ||
disabled, this API returns zero values and an empty `nodes` object. | ||
|
||
[role="child_attributes"] | ||
[[geoip-stats-api-response-body]] | ||
==== {api-response-body-title} | ||
|
||
`stats`:: | ||
(object) | ||
Download statistics for all GeoIP2 databases. | ||
+ | ||
.Properties of `stats` | ||
[%collapsible%open] | ||
==== | ||
`successful_downloads`:: | ||
(integer) | ||
Total number of successful database downloads. | ||
`failed_downloads`:: | ||
(integer) | ||
Total number of failed database downloads. | ||
`total_download_time`:: | ||
(integer) | ||
Total milliseconds spent downloading databases. | ||
`database_count`:: | ||
(integer) | ||
Current number of databases available for use. | ||
`skipped_updates`:: | ||
(integer) | ||
Total number of database updates skipped. | ||
==== | ||
|
||
`nodes`:: | ||
(object) | ||
Downloaded GeoIP2 databases for each node. | ||
+ | ||
.Properties of `nodes` | ||
[%collapsible%open] | ||
==== | ||
`<node_id>`:: | ||
(object) | ||
Downloaded databases for the node. The field key is the node ID. | ||
+ | ||
.Properties of `<node_id>` | ||
[%collapsible%open] | ||
===== | ||
`databases`:: | ||
(array of objects) | ||
Downloaded databases for the node. | ||
+ | ||
.Properties of `databases` objects | ||
[%collapsible%open] | ||
====== | ||
`name`:: | ||
(string) | ||
Name of the database. | ||
====== | ||
|
||
`files_in_temp`:: | ||
(array of strings) | ||
Downloaded database files, including related license files. {es} stores these | ||
files in the node's <<es-tmpdir,temporary directory>>: | ||
`$ES_TMPDIR/geoip-databases/<node_id>`. | ||
===== | ||
==== |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,29 @@ | ||
[[ingest-apis]] | ||
== Ingest APIs | ||
|
||
The following ingest APIs are available for managing pipelines: | ||
Use ingest APIs to manage tasks and resources related to <<ingest,ingest | ||
pipelines>> and processors. | ||
|
||
* <<put-pipeline-api>> to add or update a pipeline | ||
* <<get-pipeline-api>> to return a specific pipeline | ||
[[ingest-pipeline-apis]] | ||
=== Ingest pipeline APIs | ||
|
||
Use the following APIs to create, manage, and test ingest pipelines: | ||
|
||
* <<put-pipeline-api>> to create or update a pipeline | ||
* <<get-pipeline-api>> to retrieve a pipeline configuration | ||
* <<delete-pipeline-api>> to delete a pipeline | ||
* <<simulate-pipeline-api>> to simulate a call to a pipeline | ||
* <<simulate-pipeline-api>> to test a pipeline | ||
|
||
[[ingest-stat-apis]] | ||
=== Stat APIs | ||
|
||
Use the following APIs to get statistics about ingest processing: | ||
|
||
* <<geoip-stats-api>> to get download statistics for GeoIP2 databases used with | ||
the <<geoip-processor,`geoip` processor>>. | ||
|
||
include::put-pipeline.asciidoc[] | ||
include::get-pipeline.asciidoc[] | ||
include::delete-pipeline.asciidoc[] | ||
include::get-pipeline.asciidoc[] | ||
include::geoip-stats-api.asciidoc[] | ||
include::simulate-pipeline.asciidoc[] |
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
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
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
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
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
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
Oops, something went wrong.