Dear all,
Some please help with complete regex for below sample log.
1xx.2xx.3x.4xx - - [1/Apr/2022:05:54:15 -0700 - 0.014] 200 “GET /application/subfield/private_session.aspx?m=xxxxx.xxxxxd0428f6695dc8x HTTP/2.0” 2 “https://example.com/subpage/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36” “-”
I can extract only url part using "(?:POST|GET|DELETE|PUT|HEAD|OPTIONS|CONNECT)\s(.*?)\sHTTP/\d.\d " .
Can someone please help with complete regex for above nginx log? Idea is to extract srcip, user, timestamp, application name, useragent, etc.
Thank you.