-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocals.pp
40 lines (37 loc) · 851 Bytes
/
locals.pp
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
locals {
nginx_access_log_detections_common_tags = {
category = "Detections"
plugin = "nginx"
service = "Nginx/AccessLog"
}
}
locals {
# Local internal variables to build the SQL select clause for common
# dimensions. Do not edit directly.
detection_sql_columns = <<-EOQ
tp_timestamp as timestamp,
request_method as operation,
request_uri as resource,
status,
http_user_agent as actor,
tp_source_ip as source_ip,
tp_id as source_id,
-- Create new aliases to preserve original row data
status as status_src,
*
exclude (status)
EOQ
}
locals {
# Local internal variables to build the SQL select clause for common
# dimensions. Do not edit directly.
detection_display_columns = [
"timestamp",
"operation",
"resource",
"status",
"actor",
"source_ip",
"source_id",
]
}