From b98ccdbdd6453fea6835844648d0b80eece154b0 Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Fri, 23 Aug 2024 16:07:26 +0200 Subject: [PATCH] Update eval.md --- docs/filters/eval.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/filters/eval.md b/docs/filters/eval.md index e93a5601..74135f51 100644 --- a/docs/filters/eval.md +++ b/docs/filters/eval.md @@ -12,8 +12,9 @@ Config using logstash format: ```` filter { eval { - field => delay - operation => "x * 1000" + source_field => message + target_field => message + operation => "x * 100" } } ````` @@ -32,6 +33,6 @@ filter { ````` Parameters: -* ``field``: which field to work on. -* ``operation``: javascript code to execute. The input field is in the ``x`` variable. +* ``source_field``: which field to work on. * ``target_field``: field to store the result. Default : source field. +* ``operation``: javascript code to execute. The input field is in the ``x`` variable.