Skip to content

Commit

Permalink
docs: use valid settings in examples (#92651) (#92694)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yaauie authored Jan 6, 2023
1 parent b8076c5 commit 17dc33d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions x-pack/docs/en/rest-api/logstash/delete-pipeline.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ PUT _logstash/pipeline/my_pipeline
"pipeline.batch.size": 125,
"pipeline.batch.delay": 50,
"queue.type": "memory",
"queue.max_bytes.number": 1,
"queue.max_bytes.units": "gb",
"queue.max_bytes": "1gb",
"queue.checkpoint.writes": 1024
}
}
Expand Down
6 changes: 2 additions & 4 deletions x-pack/docs/en/rest-api/logstash/get-pipeline.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ PUT _logstash/pipeline/my_pipeline
"pipeline.batch.size": 125,
"pipeline.batch.delay": 50,
"queue.type": "memory",
"queue.max_bytes.number": 1,
"queue.max_bytes.units": "gb",
"queue.max_bytes": "1gb",
"queue.checkpoint.writes": 1024
}
}
Expand Down Expand Up @@ -92,8 +91,7 @@ If the request succeeds, the body of the response contains the pipeline definiti
"pipeline.batch.size": 125,
"pipeline.batch.delay": 50,
"queue.type": "memory",
"queue.max_bytes.number": 1,
"queue.max_bytes.units": "gb",
"queue.max_bytes": "1gb",
"queue.checkpoint.writes": 1024
}
}
Expand Down
3 changes: 1 addition & 2 deletions x-pack/docs/en/rest-api/logstash/put-pipeline.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ PUT _logstash/pipeline/my_pipeline
"pipeline.batch.size": 125,
"pipeline.batch.delay": 50,
"queue.type": "memory",
"queue.max_bytes.number": 1,
"queue.max_bytes.units": "gb",
"queue.max_bytes": "1gb",
"queue.checkpoint.writes": 1024
}
}
Expand Down

0 comments on commit 17dc33d

Please sign in to comment.