Skip to content

Instantly share code, notes, and snippets.

View IMBlues's full-sized avatar
💪
全世界无产阶级联合起来 ☭

布鲁斯搬砖鱼 IMBlues

💪
全世界无产阶级联合起来 ☭
View GitHub Profile
@msiegenthaler
msiegenthaler / nginx.grok
Last active June 15, 2023 08:19
Grok pattern for nginx ingress in Kubernetes
%{IPORHOST:client_ip} - \[%{IPORHOST:x_forwarded_for}\] - %{DATA:client_identity} \[%{HTTPDATE:timestamp}\] \"(?:%{WORD:verb} %{NOTSPACE:request}(?: HTTP/%{NUMBER:httpversion})?|-)\" %{NUMBER:response} (?:%{NUMBER:bytes_sent;long}|-) (?:"(?:%{URI:referrer}|-)") %{QS:user_agent} %{NUMBER:request_length;long} %{NUMBER:response_time;double} %{DATA:upstream_proxy} %{NUMBER:upstream_bytes_sent;long} %{NUMBER:upstream_response_time} %{NUMBER:upstream_response}