Skip to content

Commit 74ec68b

Browse files
authored
pipeline: outputs: opensearch: fix documentation for opensearch 2.x + to contain message about unknown type parameter (#823)
Signed-off-by: John <[email protected]>
1 parent 6af6ef0 commit 74ec68b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

pipeline/outputs/elasticsearch.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ If you see `action_request_validation_exception` errors on your pipeline with Fl
230230
Elastic Cloud is now on version 8 so the type option must be removed by setting `Suppress_Type_Name On` as indicated above.
231231

232232
Without this you will see errors like:
233-
```
233+
234+
```text
234235
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Action/metadata line [1] contains an unknown parameter [_type]"}],"type":"illegal_argument_exception","reason":"Action/metadata line [1] contains an unknown parameter [_type]"},"status":400}
235236
```

pipeline/outputs/opensearch.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,13 @@ Example configuration:
146146
```
147147

148148
Notice that the `Port` is set to `443`, `tls` is enabled, and `AWS_Region` is set.
149+
150+
### Action/metadata contains an unknown parameter type
151+
152+
Similarly to Elastic Cloud, OpenSearch in version 2.0 and above needs to have type option being removed by setting `Suppress_Type_Name On`.
153+
154+
Without this you will see errors like:
155+
156+
```text
157+
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Action/metadata line [1] contains an unknown parameter [_type]"}],"type":"illegal_argument_exception","reason":"Action/metadata line [1] contains an unknown parameter [_type]"},"status":400}
158+
```

0 commit comments

Comments
 (0)