Skip to content

Instantly share code, notes, and snippets.

@spoler

spoler/devops.md Secret

Created November 24, 2017 11:39
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 spoler/5e1d875f6dd744e01eed6b6d8ce54a2a to your computer and use it in GitHub Desktop.
Save spoler/5e1d875f6dd744e01eed6b6d8ce54a2a to your computer and use it in GitHub Desktop.

Download a sample log file from here: https://ftp.infinum.co/spoler/devops/access.log

Using standard command-line tools, parse the file to produce the following:

  • the top 10 IPs making the most requests, displaying the IP address and number of requests made

  • the top 10 user agents making the most requests - possibly normalizing those

  • top 10 requested pages and the number of requests made for each

  • percentage of successful requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment