Skip to content

Commit

Permalink
Update the fields as they are named in elastic#2167
Browse files Browse the repository at this point in the history
  • Loading branch information
monicasarbu committed Aug 11, 2016
1 parent 5aca086 commit 148cc5e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions libbeat/docs/processors-config.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ contains:

The `regexp` condition checks the field against a regular expression. The condition accepts only strings.

For example, the following condition checks if the process name contains `foo`:
For example, the following condition checks if the process name starts with `foo`:

[source,yaml]
-----
reqexp:
proc.name: "foo.*"
system.process.name: "foo.*"
-----

[[condition-range]]
Expand All @@ -125,32 +125,32 @@ reqexp:
The `range` condition checks if the field is in a certain range of values. The condition supports `lt`, `lte`, `gt` and `gte`. The
condition accepts only integer or float values.

For example, the following condition checks for the status of the transaction by comparing the `proc.code` field with
300.
For example, the following condition checks for failed HTTP transaction by comparing the `http.response.code` field with
400.


[source,yaml]
------
range:
proc.code:
gte: 300
http.response.code:
gte: 400
------

that can be also translated to:

[source,yaml]
----
range:
proc.code.gte: 300
http.response.code.gte: 400
----

For example, the following condition checks if the CPU usage in percentage has a value between 0.5 and 0.8.

[source,yaml]
------
range:
cpu.user_p.gte: 0.5
cpu.user_p.lt: 0.8
system.cpu.user.pct.gte: 0.5
system.cpu.user.pct.lt: 0.8
------


Expand Down

0 comments on commit 148cc5e

Please sign in to comment.