Debian Codegraph @

hub1/parsers/s01-parse/crowdsecurity/endlessh-logs.yaml

raw symbols SCIP
1 onsuccess: next_stage
2 filter: "evt.Line.Labels.type == 'endlessh'"
3 name: crowdsecurity/endlessh-logs
4 description: "Parse Endlessh logs"
5 pattern_syntax:
6 ENDLESSH_ACCEPT_V4: "%{TIMESTAMP_ISO8601:timestamp} ACCEPT host=(::ffff:)?%{IPV4:source_ip} "
7 ENDLESSH_ACCEPT_V6: "%{TIMESTAMP_ISO8601:timestamp} ACCEPT host=%{IPV6:source_ip} "
8 nodes:
9 - grok:
10 name: "ENDLESSH_ACCEPT_V4"
11 apply_on: Line.Raw
12 statics:
13 - meta: log_type
14 value: endlessh_accept
15 - grok:
16 name: "ENDLESSH_ACCEPT_V6"
17 apply_on: Line.Raw
18 statics:
19 - meta: log_type
20 value: endlessh_accept
21 statics:
22 - meta: service
23 value: endlessh
24 - target: evt.StrTime
25 expression: evt.Parsed.timestamp
26 - meta: source_ip
27 expression: "evt.Parsed.source_ip"