[DOC] Revise step 2 input code example (#5361)

* Revise step 2 input code example

Co-authored-by: Heemin Kim <heemin@amazon.com>
Signed-off-by: Melissa Vagi <vagimeli@amazon.com>

---------

Signed-off-by: Melissa Vagi <vagimeli@amazon.com>
Co-authored-by: Heemin Kim <heemin@amazon.com>
Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
This commit is contained in:
Melissa Vagi 2023-11-07 14:41:27 -07:00 committed by GitHub
parent e4c5ec18db
commit 91c54c300d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 4 deletions

View File

@ -197,14 +197,32 @@ PUT /_ingest/pipeline/my-pipeline
To test the pipeline, run the following query: To test the pipeline, run the following query:
```json ```json
POST _ingest/pipeline/my-id/_simulate POST _ingest/pipeline/my-pipeline/_simulate
{ {
"docs": [ "docs": [
{ {
"_index":"my-index", "_index": "testindex1",
"_id":"my-id", "_id": "1",
"_source": {
"ip": "172.0.0.1",
}
}
]
}
```
#### Response
The following response confirms that the pipeline is working as expected:
```json
{
"docs": [
{
"_index":"testindex1",
"_id":"1",
"_source":{ "_source":{
"my_ip_field":"172.0.0.1", "ip":"172.0.0.1",
"ip2geo":{ "ip2geo":{
"continent_name":"North America", "continent_name":"North America",
"region_iso_code":"AL", "region_iso_code":"AL",