浏览代码

docs: use valid settings in examples (#92651)

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
Ry Biesemeyer 2 年之前
父节点
当前提交
2c3792fc1c

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

@@ -55,8 +55,7 @@ PUT _logstash/pipeline/my_pipeline
     "pipeline.batch.size": 125,
     "pipeline.batch.size": 125,
     "pipeline.batch.delay": 50,
     "pipeline.batch.delay": 50,
     "queue.type": "memory",
     "queue.type": "memory",
-    "queue.max_bytes.number": 1,
-    "queue.max_bytes.units": "gb",
+    "queue.max_bytes": "1gb",
     "queue.checkpoint.writes": 1024
     "queue.checkpoint.writes": 1024
   }
   }
 }
 }

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

@@ -57,8 +57,7 @@ PUT _logstash/pipeline/my_pipeline
     "pipeline.batch.size": 125,
     "pipeline.batch.size": 125,
     "pipeline.batch.delay": 50,
     "pipeline.batch.delay": 50,
     "queue.type": "memory",
     "queue.type": "memory",
-    "queue.max_bytes.number": 1,
-    "queue.max_bytes.units": "gb",
+    "queue.max_bytes": "1gb",
     "queue.checkpoint.writes": 1024
     "queue.checkpoint.writes": 1024
   }
   }
 }
 }
@@ -92,8 +91,7 @@ If the request succeeds, the body of the response contains the pipeline definiti
       "pipeline.batch.size": 125,
       "pipeline.batch.size": 125,
       "pipeline.batch.delay": 50,
       "pipeline.batch.delay": 50,
       "queue.type": "memory",
       "queue.type": "memory",
-      "queue.max_bytes.number": 1,
-      "queue.max_bytes.units": "gb",
+      "queue.max_bytes": "1gb",
       "queue.checkpoint.writes": 1024
       "queue.checkpoint.writes": 1024
     }
     }
   }
   }

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

@@ -87,8 +87,7 @@ PUT _logstash/pipeline/my_pipeline
     "pipeline.batch.size": 125,
     "pipeline.batch.size": 125,
     "pipeline.batch.delay": 50,
     "pipeline.batch.delay": 50,
     "queue.type": "memory",
     "queue.type": "memory",
-    "queue.max_bytes.number": 1,
-    "queue.max_bytes.units": "gb",
+    "queue.max_bytes": "1gb",
     "queue.checkpoint.writes": 1024
     "queue.checkpoint.writes": 1024
   }
   }
 }
 }