Skip to content

Instantly share code, notes, and snippets.

@jamiepinkham
Created November 28, 2012 01:20
Show Gist options
  • Save jamiepinkham/4158404 to your computer and use it in GitHub Desktop.
Save jamiepinkham/4158404 to your computer and use it in GitHub Desktop.
#Version: 1.0
#Fields: date time x-edge-location sc-bytes c-ip cs-method cs(Host) cs-uri-stem sc-status cs(Referer) cs(User-Agent) cs-uri-query cs(Cookie) x-edge-result-type x-edge-request-id
2012-11-25 02:39:47 STL2 23853 75.132.22.52 GET d23o3xv0lvihc9.cloudfront.net /prerelease/Kaleidoscope-2.0.0-81.zip 200 http://www.kaleidoscopeapp.com/download_beta Mozilla/5.0%20(Linux;%20Android%204.1.2;%20SAMSUNG-SGH-T989%20Build/JZO54K)%20AppleWebKit/535.19%20(KHTML,%20like%20Gecko)%20Chrome/18.0.1025.166%20Mobile%20Safari/535.19 - - Error 9XxQm0w0kyPGGex-zs2ZlI2ZTSLe1mQw60_irUDRQhPWzsa7Apod6w==
@robrix
Copy link

robrix commented Nov 28, 2012

^(?.+?)\t(?.+?)\t(?.+?)\t(?.+?)\t(?.+?)\t(?.+?)\t(?.+?)\t(?.+?)\t(?.+?)\t(?.+?)\t(?.+?)\t(?.+?)\t(?.+?)\t(?.+?)\t(?.+?)$

@robrix
Copy link

robrix commented Nov 28, 2012

Apparently I can’t edit those comments. Trying it with a code-formatting block since the above got screwed up badly.

^(?<date>.+?)\t(?<time>.+?)\t(?<xedgelocation>.+?)\t(?<scbytes>.+?)\t(?<cip>.+?)\t(?<csmethod>.+?)\t(?<csHost>.+?)\t(?<csuristem>.+?)\t(?<scstatus>.+?)\t(?<csReferer>.+?)\t(?<csUserAgent>.+?)\t(?<csuriquery>.+?)\t(?<csCookie>.+?)\t(?<xedgeresulttype>.+?)\t(?<xedgerequestid>.+?)$

@jamiepinkham
Copy link
Author

^(?<datetime>.+?\t.+?)\t(?<xedgelocation>.+?)\t(?<scbytes>.+?)\t(?<cip>.+?)\t(?<csmethod>.+?)\t(?<csHost>.+?)\t(?<csuristem>.+?)\t(?<scstatus>.+?)\t(?<csReferer>.+?)\t(?<csUserAgent>.+?)\t(?<csuriquery>.+?)\t(?<csCookie>.+?)\t(?<xedgeresulttype>.+?)\t(?<xedgerequestid>.+?)$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment