From bcfa48c02c025e5010928fb51127362a182bcc71 Mon Sep 17 00:00:00 2001 From: Andrew <a@3ilson.com> Date: Sun, 6 Oct 2019 21:01:49 -0400 Subject: [PATCH] Create GeoIP(Template) --- Dashboard/GeoIP(Template) | 62 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 Dashboard/GeoIP(Template) diff --git a/Dashboard/GeoIP(Template) b/Dashboard/GeoIP(Template) new file mode 100644 index 0000000..0998328 --- /dev/null +++ b/Dashboard/GeoIP(Template) @@ -0,0 +1,62 @@ +PUT _template/pf-location-template +{ + "index_patterns": [ + "pf-*" + ], + "mappings": { + "properties": { + "destination": { + "properties": { + "geo": { + "dynamic": true, + "properties": { + "ip": { + "type": "ip" + }, + "location": { + "type": "geo_point" + } + } + }, + "as": { + "dynamic": true, + "properties": { + "ip": { + "type": "ip" + }, + "location": { + "type": "geo_point" + } + } + } + } + }, + "source": { + "properties": { + "geo": { + "dynamic": true, + "properties": { + "ip": { + "type": "ip" + }, + "location": { + "type": "geo_point" + } + } + }, + "as": { + "dynamic": true, + "properties": { + "ip": { + "type": "ip" + }, + "location": { + "type": "geo_point" + } + } + } + } + } + } + } +} -- GitLab