Difference between revisions of "Ctx.results"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{lc}} {{OpenSearch}}")
 
 
(12 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
  
{{OpenSearch}}
+
 
 +
<pre>
 +
{{ctx.results.0}}
 +
{{ctx.results.0.hits}}
 +
{{ctx.results.0.hits.total.value}}
 +
 
 +
_source.error_code
 +
 
 +
 
 +
</pre>
 +
 
 +
<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
 +
 
 +
== 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]

See also[edit]

Advertising: