Skip to content

Instantly share code, notes, and snippets.

@mafonso
Last active November 16, 2022 20:58
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 mafonso/baa6c4a2172e59b1fffe2d130652ea20 to your computer and use it in GitHub Desktop.
Save mafonso/baa6c4a2172e59b1fffe2d130652ea20 to your computer and use it in GitHub Desktop.
DataDog Logs ParsingRule
cloudfront %{number:timestamp}\s%{ipv4:network.client.ip}\s%{number:time_to_first_byte}\s%{number:http.status_code}\s%{number:network.bytes_written}\s%{word:cs-method}\s%{word:http.url_details.scheme}\s%{notSpace:http.url_details.host}\s%{notSpace:http.url_details.path}\s%{number:network.bytes_read}\s%{notSpace:cloudfront.edge-location:nullIf("-")}\s%{notSpace:cloudfront.edge-request-id}\s%{notSpace:cloudfront.host-header}\s%{number:time-taken}\s%{notSpace:http.version}\s%{word:c-ip-version}\s%{notSpace:http.user-agent}\s%{notSpace:http.referer}\s%{notSpace:cs-cookie}\s%{notSpace:cs-uri-query}\s%{notSpace:cloudfront.edge-response-result-type:nullIf("-")}\s%{notSpace:x_forwarded_for}\s%{notSpace:ssl-protocol}\s%{notSpace:ssl-cipher}\s%{notSpace:cloudfront.edge-result-type:nullIf("-")}\s%{notSpace:fle-encrypted-fields:nullIf("-")}\s%{notSpace:fle-status:nullIf("-")}\s%{notSpace:sc-content-type:nullIf("-")}\s%{notSpace:sc-content-lenght:nullIf("-")}\s%{notSpace:sc-range-start:nullIf("-")}\s%{notSpace:sc-range-end:nullIf("-")}\s%{number:network.client.port}\s%{word:cloudfront.edge-detailed-result-type}\s%{word:network.client.geoip.country.iso_code}\s%{notSpace:cs-accept-encoding:nullIf("-")}\s%{notSpace:cs-accept:nullIf("-")}\s%{notSpace:cloudfront.cache-behavior-path-pattern:nullIf("-")}\s%{notSpace:cs-headers:nullIf("-")}\s%{notSpace:cs-header-names:nullIf("-")}\s%{number:cs-header-count}.*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment