Skip to content

Commit f67ef2d

Browse files
authored
docs: use valid settings in examples (#92651) (#92654)
Logstash Central Management allows key/value map for pipeline settings, but the Elasticsearch API does not perform validation of the provided settings. Here, we remove from our examples settings that have no semantic meaning to Logstash, and replace them with a meaningful key/value pair
1 parent 169bb72 commit f67ef2d

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

x-pack/docs/en/rest-api/logstash/delete-pipeline.asciidoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ PUT _logstash/pipeline/my_pipeline
5555
"pipeline.batch.size": 125,
5656
"pipeline.batch.delay": 50,
5757
"queue.type": "memory",
58-
"queue.max_bytes.number": 1,
59-
"queue.max_bytes.units": "gb",
58+
"queue.max_bytes": "1gb",
6059
"queue.checkpoint.writes": 1024
6160
}
6261
}

x-pack/docs/en/rest-api/logstash/get-pipeline.asciidoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ PUT _logstash/pipeline/my_pipeline
5757
"pipeline.batch.size": 125,
5858
"pipeline.batch.delay": 50,
5959
"queue.type": "memory",
60-
"queue.max_bytes.number": 1,
61-
"queue.max_bytes.units": "gb",
60+
"queue.max_bytes": "1gb",
6261
"queue.checkpoint.writes": 1024
6362
}
6463
}
@@ -92,8 +91,7 @@ If the request succeeds, the body of the response contains the pipeline definiti
9291
"pipeline.batch.size": 125,
9392
"pipeline.batch.delay": 50,
9493
"queue.type": "memory",
95-
"queue.max_bytes.number": 1,
96-
"queue.max_bytes.units": "gb",
94+
"queue.max_bytes": "1gb",
9795
"queue.checkpoint.writes": 1024
9896
}
9997
}

x-pack/docs/en/rest-api/logstash/put-pipeline.asciidoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ PUT _logstash/pipeline/my_pipeline
8787
"pipeline.batch.size": 125,
8888
"pipeline.batch.delay": 50,
8989
"queue.type": "memory",
90-
"queue.max_bytes.number": 1,
91-
"queue.max_bytes.units": "gb",
90+
"queue.max_bytes": "1gb",
9291
"queue.checkpoint.writes": 1024
9392
}
9493
}

0 commit comments

Comments
 (0)