Improve reference docs that describe how to set options dynamically#8290
Improve reference docs that describe how to set options dynamically#8290dedemorton merged 4 commits intoelastic:masterfrom
Conversation
libbeat/docs/outputconfig.asciidoc
Outdated
| ------------------------------------------------------------------------------ | ||
| output.elasticsearch: | ||
| hosts: ["http://localhost:9200"] | ||
| index: "%\{[fields.log_type]\}-%\{[beat.version]\}-%\{+yyyy.MM.dd}\" |
There was a problem hiding this comment.
Perhaps it would be nice to explain that it's always recommended to include beat.version here to avoid mapping issues on upgrades?
exekias
left a comment
There was a problem hiding this comment.
This is looking good, I left a comment on index overriding
|
@exekias Can you review the change I pushed and let me know if anyone else needs to review this. Thanks! |
libbeat/docs/outputconfig.asciidoc
Outdated
| - index: "%{[fields.log_type]}" | ||
| mappings: | ||
| "critical": "sev1" | ||
| "normal": "sev2" |
There was a problem hiding this comment.
There is no need to have quotes for mappings.
critical: "sev1"
normal: "sev2"
libbeat/docs/outputconfig.asciidoc
Outdated
| - pipeline: "%{[fields.log_type]}" | ||
| mappings: | ||
| "critical": "sev1_pipeline" | ||
| "normal": "sev2_pipeline" |
libbeat/docs/outputconfig.asciidoc
Outdated
| references, such as `%{[fields.name]}`, the fields must exist, or the rule fails. | ||
|
|
||
| *`mapping`*: Dictionary mapping index names to new names | ||
| *`mapping`*:: A dictionary that takes the value returned by `index` and maps it |
There was a problem hiding this comment.
Good catch! I fixed it in the code, but not the descriptions.
libbeat/docs/outputconfig.asciidoc
Outdated
| references, such as `%{[fields.name]}`, the fields must exist, or the rule | ||
| fails. | ||
|
|
||
| *`mapping`*:: A dictionary that takes the value returned by `pipeline` and maps |
libbeat/docs/outputconfig.asciidoc
Outdated
| references, such as `%{[fields.name]}`, the fields must exist, or the rule | ||
| fails. | ||
|
|
||
| *`mapping`*:: A dictionary that takes the value returned by `topic` and maps it |
libbeat/docs/outputconfig.asciidoc
Outdated
| fails. | ||
|
|
||
| *`mapping`*: Dictionary mapping key values to new names | ||
| *`mapping`*: A dictionary that takes the value returned by `key` and maps it to |
|
@ph I've fixed the issues that you noticed (see 3a33035). Do you have any ideas for a Kafka example that I can add here: https://github.com/elastic/beats/pull/8290/files#diff-f1a89e6c3a1ce6f296f47ad83b989ff7R872 |
|
@dedemorton LGTM |
…lastic#8290) * Improve Elasticsearch output docs about indices, pipelines, and keys settings * Updates from review * Change setting name from mapping to mappings * Remove note to reviewer
…8478) (#8529) * Clarify support for ssl options for modules (#7967) * Clarify support for ssl options for modules * Change example to show http module * Update Elasticsearch module examples to show http in the URL (#8226) * Improve reference docs that describe how to set options dynamically (#8290) * Improve Elasticsearch output docs about indices, pipelines, and keys settings * Updates from review * Change setting name from mapping to mappings * Remove note to reviewer * Fix conditional coding (#8446) * Suppress dashboard info when dashboards aren't available (#8395) * Clarify add_docker_metadata docs (#8478)
…lastic#8290) * Improve Elasticsearch output docs about indices, pipelines, and keys settings * Updates from review * Change setting name from mapping to mappings * Remove note to reviewer
…8478) (#8528) * Clarify support for ssl options for modules (#7967) * Clarify support for ssl options for modules * Change example to show http module * Update Elasticsearch module examples to show http in the URL (#8226) * Improve reference docs that describe how to set options dynamically (#8290) * Improve Elasticsearch output docs about indices, pipelines, and keys settings * Updates from review * Change setting name from mapping to mappings * Remove note to reviewer * Fix conditional coding (#8446) * Suppress dashboard info when dashboards aren't available (#8395) * Clarify add_docker_metadata docs (#8478)
…tic#8290 elastic#8395 elastic#8446 elastic#8478) (elastic#8528) * Clarify support for ssl options for modules (elastic#7967) * Clarify support for ssl options for modules * Change example to show http module * Update Elasticsearch module examples to show http in the URL (elastic#8226) * Improve reference docs that describe how to set options dynamically (elastic#8290) * Improve Elasticsearch output docs about indices, pipelines, and keys settings * Updates from review * Change setting name from mapping to mappings * Remove note to reviewer * Fix conditional coding (elastic#8446) * Suppress dashboard info when dashboards aren't available (elastic#8395) * Clarify add_docker_metadata docs (elastic#8478)
Closes issue #3227
There's been some confusion about how some of the settings under
indices(likemappingsanddefault) work in the ES output. Since other settings (likepipelines) use the same data structures, I've applied my updates to those descriptions, too.Please suggest a good example to use for the
topicssection.Also let me know if the examples I've added are too contrived. I'm open to adding better examples, but mainly wanted to clarify how the settings work.