Skip to content

Commit 7f9d428

Browse files
committed
Add multiple log types documentation
1 parent 80b8d1c commit 7f9d428

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.12.0 (August 26, 2021)
2+
3+
ENHANCEMENTS:
4+
5+
* Add multiple log types support
6+
17
## 0.11.0 (June 8, 2021)
28

39
ENHANCEMENTS:

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,23 @@ module "aws_es" {
4040
}
4141
4242
log_publishing_options = {
43-
enabled = true
44-
log_type = "INDEX_SLOW_LOGS"
43+
index_slow_logs = {
44+
enabled = true
45+
cloudwatch_log_group_arn = "arn:aws:logs:us-east-1:123456789101:log-group:/aws/elasticsearch/index_slow_logs:*"
46+
rog_publishing_options_retention = 90
47+
}
48+
search_slow_logs = {
49+
enabled = true
50+
cloudwatch_log_group_arn = "arn:aws:logs:us-east-1:123456789101:log-group:/aws/elasticsearch/search_slow_logs:*"
51+
}
52+
es_application_logs = {
53+
enabled = true
54+
cloudwatch_log_group_name = "es_application_logs_dev"
55+
}
56+
audit_logs = {
57+
enabled = false
58+
cloudwatch_log_group_name = "audit_logs_dev"
59+
}
4560
}
4661
4762
advanced_options = {

examples/public/README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,23 @@ module "aws_es" {
2727
}
2828
2929
log_publishing_options = {
30-
enabled = "true"
30+
index_slow_logs = {
31+
enabled = true
32+
cloudwatch_log_group_arn = "arn:aws:logs:us-east-1:123456789101:log-group:/aws/elasticsearch/index_slow_logs:*"
33+
rog_publishing_options_retention = 90
34+
}
35+
search_slow_logs = {
36+
enabled = true
37+
cloudwatch_log_group_arn = "arn:aws:logs:us-east-1:123456789101:log-group:/aws/elasticsearch/search_slow_logs:*"
38+
}
39+
es_application_logs = {
40+
enabled = true
41+
cloudwatch_log_group_name = "es_application_logs_dev"
42+
}
43+
audit_logs = {
44+
enabled = false
45+
cloudwatch_log_group_name = "audit_logs_dev"
46+
}
3147
}
3248
3349
advanced_options = {

0 commit comments

Comments
 (0)