Difference between revisions of "Ctx.results"
Jump to navigation
Jump to search
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | * Doc: https://opensearch.org/docs/latest/monitoring-plugins/alerting/monitors/#extraction-query | ||
+ | * https://forum.opensearch.org/t/a-value-from-ctx-not-showing-in-alert-message/6731/2 | ||
+ | |||
+ | |||
+ | <pre> | ||
+ | {{ctx.results.0}} | ||
+ | {{ctx.results.0.hits}} | ||
+ | {{ctx.results.0.hits.total.value}} | ||
+ | |||
+ | _source.error_code | ||
+ | |||
+ | |||
+ | </pre> | ||
− | * https://forum.opensearch.org/t/ | + | <pre> |
+ | {{#ctx.results.0.hits.hits}} | ||
+ | > {{_source.ObjectID}} - {{_source.Module}} - {{_source.MessageID}} | ||
+ | > {{_source.ErrorMessage}} | ||
+ | |||
+ | {{#ctx.results.0.hits.hits__source.ErrorMessage}} | ||
+ | </pre> | ||
+ | |||
+ | == Related == | ||
+ | * [[ctx]] | ||
+ | |||
+ | == Activities == | ||
+ | * Review how to extract data: https://forum.opensearch.org/t/kibana-email-alert-extracting-field-results/3606/19 | ||
− | {{OpenSearch}} | + | == See also == |
+ | * {{OpenSearch}} |
Latest revision as of 16:39, 4 May 2022
{{ctx.results.0}} {{ctx.results.0.hits}} {{ctx.results.0.hits.total.value}} _source.error_code
{{#ctx.results.0.hits.hits}} > {{_source.ObjectID}} - {{_source.Module}} - {{_source.MessageID}} > {{_source.ErrorMessage}} {{#ctx.results.0.hits.hits__source.ErrorMessage}}
Related[edit]
Activities[edit]
- Review how to extract data: https://forum.opensearch.org/t/kibana-email-alert-extracting-field-results/3606/19
See also[edit]
Advertising: