[docs] fixed `chain` input example

Original commit: elastic/x-pack-elasticsearch@6ac4ac4ac9
This commit is contained in:
uboness 2015-11-22 21:21:54 +01:00
parent 11e17752a9
commit b752b79a29
1 changed files with 12 additions and 8 deletions

View File

@ -17,15 +17,19 @@ For example, the following chain input loads data from an HTTP server using the
"input" : {
"chain" : {
"inputs" : [ <1>
"first" : {
"simple" : { "path" : "/_search" }
{
"first" : {
"simple" : { "path" : "/_search" }
}
},
"second" : {
"http" : {
"request" : {
"host" : "localhost",
"port" : 9200,
"path" : "{{ctx.payload.first.path}}" <2>
{
"second" : {
"http" : {
"request" : {
"host" : "localhost",
"port" : 9200,
"path" : "{{ctx.payload.first.path}}" <2>
}
}
}
}