-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweb_auth.yaml
More file actions
81 lines (67 loc) · 1.8 KB
/
Copy pathweb_auth.yaml
File metadata and controls
81 lines (67 loc) · 1.8 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: 1
log_family: web_auth
pipeline:
classifier:
strategy: aho_corasick
fallback: generic_parser
signatures:
- id: cron_session_opened
contains:
- "session opened for user"
- id: cron_session_closed
contains:
- "session closed for user"
specialized_parsers:
cron_session_opened:
strategy: dissect
patterns:
# session opened for user www-data(uid=33) by www-data(uid=0)
- "session opened for user %{user.name:notspace}(%{user.id}) by %{user.effective.name:notspace}(%{user.effective.id})"
# fallback without the "by" part
- "session opened for user %{user.name:notspace}(%{user.id})"
ecs:
static:
event.dataset: web_auth
event.category: session
event.type: start
event.action: session_opened
event.type_id: cron_session_opened
cron_session_closed:
strategy: dissect
patterns:
# session closed for user www-data
- "session closed for user %{user.name:notspace}"
ecs:
static:
event.dataset: web_auth
event.category: session
event.type: end
event.action: session_closed
event.type_id: cron_session_closed
generic_parser:
enabled: true
strategy: regex
patterns:
- name: generic_cron
regex: 'CRON\[(?P<pid>\d+)\]: (?P<message>.*)'
ecs:
pid: process.pid
message: message
raw_ingestion:
enabled: true
preserve_original: true
fields:
- event.original
- message
- host.name
- process.name
- process.pid
syslog:
bsd_format:
timestamp_fields: 3
hostname_offset: 3
process_offset: 4
iso_format:
timestamp_fields: 1
hostname_offset: 1
process_offset: 2