Skip to content

Commit ac8e583

Browse files
Add Logstash API examples (#3436) (#3446)
(cherry picked from commit 254c12f) Co-authored-by: Lisa Cawley <[email protected]>
1 parent 1f0b816 commit ac8e583

File tree

8 files changed

+58
-13
lines changed

8 files changed

+58
-13
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 12 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/logstash/delete_pipeline/LogstashDeletePipelineRequest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ import { Id } from '@_types/common'
2222

2323
/**
2424
* Delete a Logstash pipeline.
25-
*
2625
* Delete a pipeline that is used for Logstash Central Management.
26+
* If the request succeeds, you receive an empty response with an appropriate status code.
2727
* @rest_spec_name logstash.delete_pipeline
2828
* @availability stack since=7.12.0 stability=stable
2929
* @availability serverless stability=stable visibility=public
3030
* @cluster_privileges manage_logstash_pipelines
31+
* @doc_id logstash-api-delete-pipeline
3132
* @ext_doc_id logstash-centralized-pipeline-management
3233
*/
3334
export interface Request extends RequestBase {

specification/logstash/get_pipeline/LogstashGetPipelineRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ import { Ids } from '@_types/common'
2222

2323
/**
2424
* Get Logstash pipelines.
25-
*
2625
* Get pipelines that are used for Logstash Central Management.
2726
* @rest_spec_name logstash.get_pipeline
2827
* @availability stack since=7.12.0 stability=stable
2928
* @availability serverless stability=stable visibility=public
3029
* @cluster_privileges manage_logstash_pipelines
30+
* @doc_id logstash-api-get-pipeline
3131
* @ext_doc_id logstash-centralized-pipeline-management
3232
*/
3333
export interface Request extends RequestBase {
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# summary:
2+
description: >
3+
A successful response from `GET _logstash/pipeline/my_pipeline`.
4+
# type: "response"
5+
# response_code: 200
6+
value:
7+
my_pipeline:
8+
description: Sample pipeline for illustration purposes
9+
last_modified: '2021-01-02T02:50:51.250Z'
10+
pipeline_metadata:
11+
type: logstash_pipeline
12+
version: '1'
13+
username: elastic
14+
pipeline: 'input {}\n filter { grok {} }\n output {}'
15+
pipeline_settings:
16+
pipeline.workers: 1
17+
pipeline.batch.size: 125
18+
pipeline.batch.delay: 50
19+
queue.type: memory
20+
queue.max_bytes: 1gb
21+
queue.checkpoint.writes: 1024

specification/logstash/put_pipeline/LogstashPutPipelineRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { Id } from '@_types/common'
3030
* @availability stack since=7.12.0 stability=stable
3131
* @availability serverless stability=stable visibility=public
3232
* @cluster_privileges manage_logstash_pipelines
33+
* @doc_id logstash-api-put-pipeline
3334
* @ext_doc_id logstash-centralized-pipeline-management
3435
*/
3536
export interface Request extends RequestBase {
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
summary: Create a pipeline
2+
# method_request: PUT _logstash/pipeline/my_pipeline
3+
description: Run `PUT _logstash/pipeline/my_pipeline` to create a pipeline.
4+
# type: request
5+
value:
6+
description: Sample pipeline for illustration purposes
7+
last_modified: '2021-01-02T02:50:51.250Z'
8+
pipeline_metadata:
9+
type: logstash_pipeline
10+
version: 1
11+
username: elastic
12+
pipeline: 'input {}\n filter { grok {} }\n output {}'
13+
pipeline_settings:
14+
pipeline.workers: 1
15+
pipeline.batch.size: 125
16+
pipeline.batch.delay: 50
17+
queue.type: memory
18+
queue.max_bytes: 1gb
19+
queue.checkpoint.writes: 1024

0 commit comments

Comments
 (0)