Skip to content

Commit

Permalink
[DOCS] More ES|QL getting started updates
Browse files Browse the repository at this point in the history
  • Loading branch information
abdonpijpelink committed Dec 5, 2023
1 parent ea6013c commit 25537c9
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PUT clientips
{
"mappings": {
"properties": {
"client.ip": {
"client_ip": {
"type": "keyword"
},
"env": {
Expand All @@ -22,21 +22,21 @@ PUT clientips
PUT clientips/_bulk
{ "index" : {}}
{ "client.ip": "172.21.0.5", "env": "Development" }
{ "client_ip": "172.21.0.5", "env": "Development" }
{ "index" : {}}
{ "client.ip": "172.21.2.113", "env": "QA" }
{ "client_ip": "172.21.2.113", "env": "QA" }
{ "index" : {}}
{ "client.ip": "172.21.2.162", "env": "QA" }
{ "client_ip": "172.21.2.162", "env": "QA" }
{ "index" : {}}
{ "client.ip": "172.21.3.15", "env": "Production" }
{ "client_ip": "172.21.3.15", "env": "Production" }
{ "index" : {}}
{ "client.ip": "172.21.3.16", "env": "Production" }
{ "client_ip": "172.21.3.16", "env": "Production" }
PUT /_enrich/policy/clientip_policy
{
"match": {
"indices": "clientips",
"match_field": "client.ip",
"match_field": "client_ip",
"enrich_fields": ["env"]
}
}
Expand Down

0 comments on commit 25537c9

Please sign in to comment.