Skip to content

Instantly share code, notes, and snippets.

@galvarado
Created October 14, 2015 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save galvarado/2e8e6b2470e96d947e35 to your computer and use it in GitHub Desktop.
Save galvarado/2e8e6b2470e96d947e35 to your computer and use it in GitHub Desktop.
^(?<time>^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2}(\.\d{3})?)) (?<id>(\d)*)?\s?(?<severity>(INFO|ERROR|WARNING|CRITICAL)) (?<component>([A-Za-z,\.,\,\_]*(\.)*))+ (?<description>([A-Za-z,\.,\[,\],\s,\:,\-,\d,\(,\),\=,\/,\',\",\_,{,}]*))$
Test case:
2015-10-14 17:16:19.330 INFO nova.osapi_compute.wsgi.server [req-bef63dd4-2450-47ab-92f1-b4388a747ba7 admin demo] 104.131.138.224 "GET /v2.1/ceddd0c4f5214101b2026aef64797d51/limits HTTP/1.1" status: 200 len: 779 time: 0.2924919{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment