Skip to content

Commit 6f16d2d

Browse files
added count examples
1 parent afd94b9 commit 6f16d2d

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

examples/32-count-example.log

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2019/02/05 12:07:37 [notice] 1629#1629: signal process started
2+
2019/02/05 12:07:37 [error] 1629#1629: open() "/run/nginx.pid" failed (2: No such file or directory)
3+
2019/02/05 12:07:38 [emerg] 1655#1655: bind() to 0.0.0.0:80 failed (98: Address already in use)
4+
2019/02/05 12:07:38 [emerg] 1655#1655: bind() to foo bar
5+
2019/02/05 12:07:39 [emerg] 1655#1655: bind() to test
6+
2019/02/05 12:07:40 [emerg] 1655#1655: bind() to foo bar
7+
2019/02/05 12:07:40 [emerg] 1655#1655: bind() to 0.0.0.0:444 failed (98: Address already in use)
8+
2019/02/05 12:07:41 [emerg] 1655#1655: bind() just kidding false alarm this is normal
9+
2019/02/05 12:07:42 [emerg] 1655#1655: bind() to [::]:444 failed (98: Address already in use)
10+
2019/02/05 12:07:43 [emerg] 1655#1655: still could not bind() to baaaz
11+
2019/02/05 12:07:44 [alert] 1631#1631: unlink() "/run/nginx.pid" failed (2: No such file or directory)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
rules:
2+
- cre:
3+
id: count-example
4+
metadata:
5+
id: ZRFiu1mDd8eCruq2ZUH9hx
6+
hash: TzUzLggVQLvReC1mivmkrK
7+
rule:
8+
set:
9+
event:
10+
source: cre.log.kafka
11+
match:
12+
- regex: "foo(.+)bar"
13+
count: 2
14+
window: 10s

0 commit comments

Comments
 (0)