Skip to content

Commit 0aac377

Browse files
mergify[bot]karenzonekaisecheng
authored
Doc: Refine geoip filter example (#18101) (#18104)
Added sample output structure for geoip filter (cherry picked from commit 86ee4df) Co-authored-by: Karen Metts <[email protected]> Co-authored-by: kaisecheng <[email protected]>
1 parent 703dd7e commit 0aac377

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

docs/static/transforming-data.asciidoc

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -433,19 +433,28 @@ The <<plugins-filters-geoip,geoip filter>> adds geographical information about t
433433
filter {
434434
geoip {
435435
source => "clientip"
436+
target => "[source]"
436437
}
437438
}
438439
--------------------------------------------------------------------------------
439440
+
440-
After the geoip filter is applied, the event will be enriched with geoip fields.
441+
After the geoip filter is applied, the event is enriched with geoip fields.
441442
For example:
442443
+
443444
[source,json]
444445
--------------------------------------------------------------------------------
445-
filter {
446-
geoip {
447-
source => "clientip"
448-
}
446+
"source" => {
447+
"geo" => {
448+
"country_name" => "France",
449+
"country_iso_code" => "FR",
450+
"continent_code" => "EU",
451+
"location" => {
452+
"lon" => 2.3387,
453+
"lat" => 48.8582
454+
},
455+
"timezone" => "Europe/Paris"
456+
},
457+
"ip" => "82.67.74.30"
449458
}
450459
--------------------------------------------------------------------------------
451460

0 commit comments

Comments
 (0)