We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(?<
I searched golang docs. And I found this description: So I changed my custom pattern to "(?P<":
(?P<loglevel>[A-Z])%{NUMBER:logdate} %{TIME:logtime}%{SPACE}%{NUMBER:threadid} (?P<file_source>%{WORD}\.%{WORD}):(?P<file_line>%{NUMBER})\]%{SPACE}GetBucket\[token:%{NOTSPACE:token}, path:%{URIPATHPARAM:request}\]
But I notice that the default patterns are no need to start with "(?P<", indeed they start with "(?<":
CLOUDFRONT_ACCESS_LOG (?<timestamp>%{YEAR}-%{MONTHNUM}-%{MONTHDAY}\t%{TIME})\t%{WORD:x_edge_location}\t(?:%{NUMBER:sc_bytes:int}|-)\t%{IPORHOST:clientip}\t%{WORD:cs_method}\t%{HOSTNAME:cs_host}\t%{NOTSPACE:cs_uri_stem}\t%{NUMBER:sc_status:int}\t%{GREEDYDATA:referrer}\t%{GREEDYDATA:agent}\t%{GREEDYDATA:cs_uri_query}\t%{GREEDYDATA:cookies}\t%{WORD:x_edge_result_type}\t%{NOTSPACE:x_edge_request_id}\t%{HOSTNAME:x_host_header}\t%{URIPROTO:cs_protocol}\t%{INT:cs_bytes:int}\t%{GREEDYDATA:time_taken:float}\t%{GREEDYDATA:x_forwarded_for}\t%{GREEDYDATA:ssl_protocol}\t%{GREEDYDATA:ssl_cipher}\t%{GREEDYDATA:x_edge_response_result_type}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I searched golang docs. And I found this description:
So I changed my custom pattern to "(?P<":
But I notice that the default patterns are no need to start with "(?P<", indeed they start with "(?<":
The text was updated successfully, but these errors were encountered: