Skip to content

Commit b98ccdb

Browse files
authored
Update eval.md
1 parent 207ed14 commit b98ccdb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/filters/eval.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ Config using logstash format:
1212
````
1313
filter {
1414
eval {
15-
field => delay
16-
operation => "x * 1000"
15+
source_field => message
16+
target_field => message
17+
operation => "x * 100"
1718
}
1819
}
1920
`````
@@ -32,6 +33,6 @@ filter {
3233
`````
3334
Parameters:
3435
35-
* ``field``: which field to work on.
36-
* ``operation``: javascript code to execute. The input field is in the ``x`` variable.
36+
* ``source_field``: which field to work on.
3737
* ``target_field``: field to store the result. Default : source field.
38+
* ``operation``: javascript code to execute. The input field is in the ``x`` variable.

0 commit comments

Comments
 (0)