Skip to content

Commit

Permalink
aws/alb-accesslog-table module support traceability_id (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
hkobayash authored May 30, 2024
1 parent 9dcc6af commit 75b7a37
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion aws/alb-accesslog-table/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ resource "aws_glue_catalog_table" "t" {
parameters = {
"serialization.format" = 1
# NOTE: https://docs.aws.amazon.com/athena/latest/ug/application-load-balancer-logs.html
"input.regex" = "([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*):([0-9]*) ([^ ]*)[:-]([0-9]*) ([-.0-9]*) ([-.0-9]*) ([-.0-9]*) (|[-0-9]*) (-|[-0-9]*) ([-0-9]*) ([-0-9]*) \"([^ ]*) (.*) (- |[^ ]*)\" \"([^\"]*)\" ([A-Z0-9-_]+) ([A-Za-z0-9.-]*) ([^ ]*) \"([^\"]*)\" \"([^\"]*)\" \"([^\"]*)\"(?: ([-.0-9]*)(?: ([^ ]*)(?: \"([^\"]*)\"(?: \"([^\"]*)\"(?: \"([^ ]*)\"(?: \"([^\\s]+?)\" \"([^\\s]+)\"(?: \"([^ ]*)\" \"([^ ]*)\"){0,1}){0,1}){0,1}){0,1}){0,1}){0,1}){0,1}"
"input.regex" = "([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*):([0-9]*) ([^ ]*)[:-]([0-9]*) ([-.0-9]*) ([-.0-9]*) ([-.0-9]*) (|[-0-9]*) (-|[-0-9]*) ([-0-9]*) ([-0-9]*) \"([^ ]*) (.*) (- |[^ ]*)\" \"([^\"]*)\" ([A-Z0-9-_]+) ([A-Za-z0-9.-]*) ([^ ]*) \"([^\"]*)\" \"([^\"]*)\" \"([^\"]*)\"(?: ([-.0-9]*)(?: ([^ ]*)(?: \"([^\"]*)\"(?: \"([^\"]*)\"(?: \"([^ ]*)\"(?: \"([^\\s]+?)\" \"([^\\s]+)\"(?: \"([^ ]*)\" \"([^ ]*)\"(?: ([^ ]*)){0,1}){0,1}){0,1}){0,1}){0,1}){0,1}){0,1}){0,1}"
}
}

Expand Down Expand Up @@ -214,6 +214,11 @@ resource "aws_glue_catalog_table" "t" {
name = "classification_reason"
type = "string"
}

columns {
name = "traceability_id"
type = "string"
}
}

partition_keys {
Expand Down

0 comments on commit 75b7a37

Please sign in to comment.