From d46a061499fe17f1a21fa493417c18266f2168a8 Mon Sep 17 00:00:00 2001 From: Luca Belluccini Date: Mon, 6 Apr 2020 11:11:17 +0200 Subject: [PATCH] [DOC] Clarify how the event is sent in scripts Following this https://discuss.elastic.co/t/script-params-via-logstash-is-it-possible/226586/3?u=luca_belluccini, I've opened change to clarify the whole event is passed as variable inside the `params`. --- docs/index.asciidoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/index.asciidoc b/docs/index.asciidoc index 181944373..82668edf7 100644 --- a/docs/index.asciidoc +++ b/docs/index.asciidoc @@ -729,7 +729,10 @@ Define the type of script referenced by "script" variable * Value type is <> * Default value is `"event"` -Set variable name passed to script (scripted update) +Set variable name passed to script (scripted update). + +Logstash will send the content of the event in a variable inside the `params`. +See https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting-using.html#_script_parameters [id="plugins-{type}s-{plugin}-scripted_upsert"] ===== `scripted_upsert`