-
Notifications
You must be signed in to change notification settings - Fork 2
/
aws-athena-example.toml
25 lines (22 loc) · 1000 Bytes
/
aws-athena-example.toml
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
[general]
title = "Example config for Dr. Sven using AWS Athena getting started dataset https://docs.aws.amazon.com/athena/latest/ug/getting-started.html"
output_location = "lovely-bucket"
output_region = "eu-west-1"
[datasource]
query = "SELECT date, COUNT(*) as count FROM cloudfront_logs WHERE date BETWEEN date '{start_date}' AND date '{end_date}' GROUP BY date"
database = "mydatabase"
start_date = 2014-07-01
end_date = 2014-08-08
[rules]
[[rules.min_records]]
name = "Weekends must have a few records"
ignore_dates = [2014-07-12, 2014-07-13]
ignore_days = ["Weekdays"]
min_records = 10
explanation = "The logs should always have some activity at weekends, just not as much as in the week"
[[rules.min_records]]
name = "Weekdays must have many records"
ignore_dates = [2014-07-06, 2014-07-07, 2014-07-06, 2014-07-25]
ignore_days = ["Weekends"]
min_records = 100
explanation = "There will always be a lot of log activity during the week unless there is some downtime"