Skip to content

Commit f217b3d

Browse files
add regex for alb-log
1 parent 1675057 commit f217b3d

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

resources/formats.json

+38
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,44 @@
109109
"classification_reason",
110110
"track_id"
111111
]
112+
},
113+
{
114+
"pattern": "^(?<type>http|https|h2|ws|wss) (?<timestamp>\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{6}Z) (?<elb>[^ ]+) (?<client_ip>[^:]+):(?<client_port>\\d+) (?<target_ip>[^ ]+) (?<request_processing_time>[^ ]+) (?<target_processing_time>[^ ]+) (?<response_processing_time>[^ ]+) (?<elb_status_code>[^ ]+) (?<target_status_code>[^ ]+) (?<received_bytes>[^ ]+) (?<sent_bytes>[^ ]+) (?<cs_method>[^ ]+) (?<cs_uri_whole>[^ ]+) (?<cs_version>[^ ]+) (?<user_agent>.*?) (?<ssl_cipher>[^ ]+) (?<ssl_protocol>[^ ]+) (?<target_group_arn>[^ ]+) (?<trace_id>[^ ]+) (?<domain_name>[^ ]+) (?<chosen_cert_arn>[^ ]+) (?<action_executed>[^ ]+) (?<request_creation_time>\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{6}Z|[^ ]+) (?<redirect_url>[^ ]+) (?<redirect_proto>[^ ]+) (?<redirect_port>[^ ]+) (?<target_ip_port>[^ ]+|[^ ]*) (?<target_status_desc>[^ ]+|[^ ]*) (?<classification>[^ ]+|[^ ]*) (?<classification_reason>[^ ]+|[^ ]*) (?<track_id>TID_[a-f0-9]+)$",
115+
"fields": [
116+
"type",
117+
"timestamp",
118+
"elb",
119+
"client_ip",
120+
"client_port",
121+
"target_ip",
122+
"request_processing_time",
123+
"target_processing_time",
124+
"response_processing_time",
125+
"elb_status_code",
126+
"target_status_code",
127+
"received_bytes",
128+
"sent_bytes",
129+
"cs_method",
130+
"cs_uri_whole",
131+
"cs_version",
132+
"user_agent",
133+
"ssl_cipher",
134+
"ssl_protocol",
135+
"target_group_arn",
136+
"trace_id",
137+
"domain_name",
138+
"chosen_cert_arn",
139+
"action_executed",
140+
"request_creation_time",
141+
"redirect_url",
142+
"redirect_proto",
143+
"redirect_port",
144+
"target_ip_port",
145+
"target_status_desc",
146+
"classification",
147+
"classification_reason",
148+
"track_id"
149+
]
112150
}
113151
]
114152
},

0 commit comments

Comments
 (0)