Skip to content

Instantly share code, notes, and snippets.

@thomashartm
Last active July 12, 2019 15:24
Show Gist options
  • Save thomashartm/cff13f888e4985cbabaa74ec55539ad7 to your computer and use it in GitHub Desktop.
Save thomashartm/cff13f888e4985cbabaa74ec55539ad7 to your computer and use it in GitHub Desktop.
Pulls out requests in the format METHOD PATH STATUSCODE SIZE from AEM access.log
#!/bin/bash
# Use this script to pull out all requests in the format METHOD PATH STATUSCODE SIZE from AEM access.log
# An entry will look as follows:
# GET /content/we-retail.html 200 45673
cat access.log* | tr -d - | cut -d\" -f2,3 | sed 's/ HTTP\/1.1//' > issued-requests.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment