diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-06-26 16:54:11 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-06-26 16:54:11 +0200 |
commit | 86e0f74bd7f0301886c1dda0f147b6c8ffbdd707 (patch) | |
tree | db6dc6aa23b05173c33f9ea5345f7871c8ce62b4 /raidgrep.1.asciidoc | |
parent | 1fb3d3259d23410f8bf9879f64de880a11e4f876 (diff) | |
parent | e22b79adaaa69761fc520d6cd57baee1025fa926 (diff) | |
download | raidgrep-86e0f74bd7f0301886c1dda0f147b6c8ffbdd707.tar.gz raidgrep-86e0f74bd7f0301886c1dda0f147b6c8ffbdd707.tar.bz2 raidgrep-86e0f74bd7f0301886c1dda0f147b6c8ffbdd707.zip |
Merge branch 'comparison-filters'
Diffstat (limited to 'raidgrep.1.asciidoc')
-rw-r--r-- | raidgrep.1.asciidoc | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/raidgrep.1.asciidoc b/raidgrep.1.asciidoc index fc54f35..3165529 100644 --- a/raidgrep.1.asciidoc +++ b/raidgrep.1.asciidoc @@ -144,10 +144,35 @@ Those predicates can be used as-is in the filter: Include logs in which any player matches the given player predicates. See below for a list of player predicates. +=== Comparative Predicates + +Some predicates work by comparing a log value against a given constant (or +other computed value). Comparisons are done using the operators '<', '\<=', '=', +'>' and '>=' - in the list below, the placeholder '<>' will be used in place +of one of the comparison operators. + +*-time* '<>' 'DATE':: + Include logs whose timestamp is in relation to the given date. This is a + generalized version of the *-before* and *-after* predicates and accepts + the same date formats. + +*-duration* '<>' 'DURATION':: + Include logs whose duration is in relation to the given duration. The + duration is given as minutes and/or seconds: "42m", "42m 42s" or "42s". + +*count(player)* '<>' 'COUNT':: + Include logs whose player count is in relation to the given count. This + counts all players in the log. + +*count(player:* 'PREDICATES' *)* '<>' 'COUNT':: + Include logs whose player count is in relation to the given count, only + counting players that are matching the given player predicates. See below + for a list of player predicates. + === Player Predicates -The following predicates have to be wrapped in either a *any(player: ...)* or -*all(player: ...)* construct to be accepted. +The following predicates have to be wrapped in either a *any(player: ...)*, +*all(player: ...)* or *count(player: ...)* construct to be accepted. *-character* 'REGEX':: Matches the player if the character name matches the given regular |