-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsample.yaml
More file actions
56 lines (54 loc) · 2.01 KB
/
Copy pathsample.yaml
File metadata and controls
56 lines (54 loc) · 2.01 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
aws_region: us-west-2
aws_access_key: XXXXXXXXXXXXXXXXXXXX
aws_secret_access_key: ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
app: my-app
app_ver: 1.0
files:
- name: nginx-access
file: /var/log/nginx/access.log
parse_mode: regex
time_format: 02/Jan/2006:15:04:05 +0000
retry_file_open: true
line_regex: #nginx-access ^(?P<remote_address>[^ ]*)\ \-\ (?P<remote_user>[^ ]*)\ \[(?P<event_datetime>[^\]]*)\] \"[^\"]*\"\ (?P<log_level>[\d]*)\ (?P<response_bytes>[-\d]*)\ \"(?P<http_referer>[^\"]*)\"\ \"(?P<http_user_agent>[^\"]*)\"\s?(?P<response_s>[-\d\.]+)?
stream: app-log
buffer_multi_lines: false
- name: my-app-json
file: /var/log/node.out.log
parse_mode: json
time_format: 2006-01-02T15:04:05.999Z
stream: app-log
buffer_multi_lines: false
field_mappings:
log_level: severity
event_datetime: timestamp
remote_address: remoteIp
device_type: deviceModel
device_tag: deviceId
user_tag: userId
country: country
os: platform
streams:
- stream_name: app-log
name: app-log-firehose
type: firehose
record_format:
- {key: app, type: string, length: 16}
- {key: app_ver, type: string, length: 16}
- {key: ingest_datetime, type: timestamp}
- {key: event_datetime, type: timestamp}
- {key: hostname, type: string, length: 64}
- {key: filename, type: string, length: 256}
- {key: log_level, type: string, length: 16}
- {key: device_tag, type: string, length: 64}
- {key: user_tag, type: string, length: 64}
- {key: remote_address, type: string, length: 64}
- {key: response_bytes, type: integer}
- {key: response_ms, type: double}
- {key: device_type, type: string, length: 32}
- {key: os, type: string, length: 16}
- {key: os_ver, type: string, length: 16}
- {key: browser, type: string, length: 32}
- {key: browser_ver, type: string, length: 16}
- {key: country, type: string, length: 64}
- {key: language, type: string, length: 16}
- {key: log_line, type: string}