Skip to content

Commit 31c609d

Browse files
author
Hendrik Muhs
committed
[DOCS] change source and dest to be nested and add a query to the example (elastic#41293)
update source and dest to reflect the changes done in elastic#40396 and add a query to the example.
1 parent 4a288af commit 31c609d

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

docs/reference/data-frames/apis/put-transform.asciidoc

+17-5
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ Instantiates a {dataframe-transform}.
2525

2626
==== Request Body
2727

28-
`source`:: The source index or index pattern.
28+
`source`:: (object) The source configuration, consisting of `index` and optionally
29+
a `query`.
2930

30-
`dest`:: The destination index.
31+
`dest`:: (object) The destination configuration, consisting of `index`.
3132

3233
`pivot`:: Defines the pivot function `group by` fields and the aggregation to
3334
reduce the data.
@@ -44,8 +45,19 @@ sample data:
4445
--------------------------------------------------
4546
PUT _data_frame/transforms/ecommerce_transform
4647
{
47-
"source": "kibana_sample_data_ecommerce",
48-
"dest": "kibana_sample_data_ecommerce_transform",
48+
"source": {
49+
"index": "kibana_sample_data_ecommerce",
50+
"query": {
51+
"term": {
52+
"geoip.continent_name": {
53+
"value": "Asia"
54+
}
55+
}
56+
}
57+
},
58+
"dest": {
59+
"index": "kibana_sample_data_ecommerce_transform"
60+
},
4961
"pivot": {
5062
"group_by": {
5163
"customer_id": {
@@ -74,4 +86,4 @@ When the transform is created, you receive the following results:
7486
"acknowledged" : true
7587
}
7688
----
77-
// NOTCONSOLE
89+
// NOTCONSOLE

0 commit comments

Comments
 (0)