Skip to content

Commit

Permalink
Update eval.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Aug 23, 2024
1 parent 207ed14 commit b98ccdb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/filters/eval.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ Config using logstash format:
````
filter {
eval {
field => delay
operation => "x * 1000"
source_field => message
target_field => message
operation => "x * 100"
}
}
`````
Expand All @@ -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.

0 comments on commit b98ccdb

Please sign in to comment.