File: test.yaml

package info (click to toggle)
crowdsec 1.4.6-10.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,500 kB
  • sloc: sh: 2,870; makefile: 386; python: 74
file content (30 lines) | stat: -rw-r--r-- 734 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#these are the events we input into parser
lines:
  - Line:
      Labels:
        #this one will be checked by a filter
        type: type1
      Raw: xxheader VALUE1 trailing stuff
  - Line:
  #see tricky case : first one is nginx via syslog, the second one is local nginx :)
      Labels:
        #this one will be checked by a filter
        type: type1
      Raw: xxheader VALUE2 trailing stuff
#these are the results we expect from the parser
results:
  - Meta:
      final_state: leaf1
      state_sub: VALUE1
    Parsed:
      extracted_value: VALUE1
    Process: true
    Stage: s00-raw
  - Meta:
      final_state: leaf2
      state_sub: VALUE2
    Parsed:
      extracted_value: VALUE2
    Process: true
    Stage: s00-raw