[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:
parent
e4c5ec18db
commit
91c54c300d
|
@ -197,14 +197,32 @@ PUT /_ingest/pipeline/my-pipeline
|
|||
To test the pipeline, run the following query:
|
||||
|
||||
```json
|
||||
POST _ingest/pipeline/my-id/_simulate
|
||||
POST _ingest/pipeline/my-pipeline/_simulate
|
||||
{
|
||||
"docs": [
|
||||
{
|
||||
"_index":"my-index",
|
||||
"_id":"my-id",
|
||||
"_index": "testindex1",
|
||||
"_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":{
|
||||
"my_ip_field":"172.0.0.1",
|
||||
"ip":"172.0.0.1",
|
||||
"ip2geo":{
|
||||
"continent_name":"North America",
|
||||
"region_iso_code":"AL",
|
||||
|
|
Loading…
Reference in New Issue