29 lines
565 B
Plaintext
29 lines
565 B
Plaintext
// This file is autogenerated, DO NOT EDIT
|
|
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
|
|
|
[source, js]
|
|
----
|
|
const response = await client.ingest.simulate({
|
|
pipeline: {
|
|
description: "monthly date-time index naming",
|
|
processors: [
|
|
{
|
|
date_index_name: {
|
|
field: "date1",
|
|
index_name_prefix: "my-index-",
|
|
date_rounding: "M",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
docs: [
|
|
{
|
|
_source: {
|
|
date1: "2016-04-25T12:02:01.789Z",
|
|
},
|
|
},
|
|
],
|
|
});
|
|
console.log(response);
|
|
----
|