Skip to content

Instantly share code, notes, and snippets.

@huyby
Created November 20, 2013 13:34
Show Gist options
  • Select an option

  • Save huyby/7563257 to your computer and use it in GitHub Desktop.

Select an option

Save huyby/7563257 to your computer and use it in GitHub Desktop.
Examples of parsing Apache logs

Get list of referrers in an apache access log (combined) for a specific request

sudo grep "something" * | awk '{print $11}' | grep -o "http://[^\"/]*" | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment