Created
October 24, 2015 12:44
-
-
Save MauricioRoman/dc305d0cbaab929b86bd to your computer and use it in GitHub Desktop.
regex to parse empty nginx logs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
regex = "(?P<ipaddress>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(.+)(?P<dateandtime>\d{2}\/[a-zA-Z]{3}\/\d{4}:\d{2}:\d{2}:\d{2})(.+)(?P<statuscode>\d{3})" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment