Skip to content

Instantly share code, notes, and snippets.

@UltimateNova1203
Created June 11, 2024 17:08
Show Gist options
  • Save UltimateNova1203/de73aa3f40835599c30ee10931667325 to your computer and use it in GitHub Desktop.
Save UltimateNova1203/de73aa3f40835599c30ee10931667325 to your computer and use it in GitHub Desktop.
# RemoteIP - RemoteUser [Time]
# "Request" Status Bytes
# "Referrer" "UserAgent" "X-Forwarded-For"
# IP Address, Time
regexp=^(.*)]
colours=bold cyan
-
# Request
regexp= ".*" \b
colours=green
-
# Request invalid
regexp= ".*" ((4|5)[0-9]{1,2})\b
colours=bold green
-
# HTTP status
regexp=[0-9]{1,3} [0-9]{1,}
colours=yellow
-
# HTTP status invalid
regexp=((4|5)[0-9]{1,2}) [0-9]{1,}
colours=bold yellow
-
# Invalid UserAgent
regexp=(\b ".*" ".*" ".*")$
colours=bold magenta
-
# IP Referrer, UserAgent, X-Forwarded-For
regexp=(\b ".*" ".*(Mozilla|Safari|Edge|Chrome|Mastodon).*" ".*")$
colours=magenta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment