summaryrefslogtreecommitdiff
path: root/groot-examples/end-to-end-example
diff options
context:
space:
mode:
authordoufenghu <[email protected]>2024-10-30 20:15:51 +0800
committerdoufenghu <[email protected]>2024-10-30 20:15:51 +0800
commitac04f1d8735fb500c11aa87239c9c8c23e5af41a (patch)
tree4fc04287a1f6a5bb9ae8efbb2e50f0d4a1651d76 /groot-examples/end-to-end-example
parentd2579028fb90bd60ca9e5f9fa36cbde8a6db8872 (diff)
[Improve][core] Enhance the drop, AsnLookup, and GeoIPLookup UDF context configuration checks by using a common validation utility.
Diffstat (limited to 'groot-examples/end-to-end-example')
-rw-r--r--groot-examples/end-to-end-example/src/main/resources/examples/inline_to_print_test.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/groot-examples/end-to-end-example/src/main/resources/examples/inline_to_print_test.yaml b/groot-examples/end-to-end-example/src/main/resources/examples/inline_to_print_test.yaml
index 77afab8..047f1ba 100644
--- a/groot-examples/end-to-end-example/src/main/resources/examples/inline_to_print_test.yaml
+++ b/groot-examples/end-to-end-example/src/main/resources/examples/inline_to_print_test.yaml
@@ -92,6 +92,21 @@ processing_pipelines:
kb_name: tsg_ip_location
option: IP_TO_DETAIL
+ - function: GEOIP_LOOKUP
+ lookup_fields: [ server_ip ]
+ output_fields: [ ]
+ parameters:
+ kb_name: tsg_ip_location
+ option: IP_TO_OBJECT
+ geolocation_field_mapping:
+ COUNTRY: server_country
+ PROVINCE: server_super_administrative_area
+ CITY: server_administrative_area
+ LONGITUDE: server_longitude
+ LATITUDE: server_latitude
+ ISP: server_isp
+ ORGANIZATION: server_organization
+
- function: JSON_EXTRACT
lookup_fields: [ device_tag ]
output_fields: [ device_group ]