This repository has been archived by the owner on Aug 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 70
/
awslogs.conf
58 lines (51 loc) · 1.63 KB
/
awslogs.conf
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
[general]
state_file = /var/awslogs/state/agent-state
[syslog]
datetime_format = %Y-%m-%d %H:%M:%S
file = /var/log/syslog
buffer_duration = 5000
log_stream_name = {instance_id}-{hostname}-{ip_address}-syslog
initial_position = start_of_file
log_group_name = ecs
[kern.log]
datetime_format = %Y-%m-%d %H:%M:%S
file = /var/log/kern.log
buffer_duration = 5000
log_stream_name = {instance_id}-{hostname}-{ip_address}-kern.log
initial_position = start_of_file
log_group_name = ecs
[docker]
datetime_format = %Y-%m-%d %H:%M:%S
file = /mnt/ecs_instance_logs/docker
buffer_duration = 5000
log_stream_name = {instance_id}-{hostname}-{ip_address}-docker
initial_position = start_of_file
log_group_name = ecs
[ecs-agent.log]
datetime_format = %Y-%m-%d %H:%M:%S
file = /mnt/ecs_instance_logs/ecs/ecs-agent.log
buffer_duration = 5000
log_stream_name = {instance_id}-{hostname}-{ip_address}-ecs-agent.log
initial_position = start_of_file
log_group_name = ecs
[ecs-init.log]
datetime_format = %Y-%m-%d %H:%M:%S
file = /mnt/ecs_instance_logs/ecs/ecs-init.log
buffer_duration = 5000
log_stream_name = {instance_id}-{hostname}-{ip_address}-ecs-init.log
initial_position = start_of_file
log_group_name = ecs
[httpd-access.log]
datetime_format = %Y-%m-%d %H:%M:%S
file = /var/log/httpd-access.log
buffer_duration = 5000
log_stream_name = {instance_id}-{hostname}-{ip_address}-httpd-access.log
initial_position = start_of_file
log_group_name = ecs
[httpd-error.log]
datetime_format = %Y-%m-%d %H:%M:%S
file = /var/log/httpd-error.log
buffer_duration = 5000
log_stream_name = {instance_id}-{hostname}-{ip_address}-httpd-error.log
initial_position = start_of_file
log_group_name = ecs