Skip to content

Instantly share code, notes, and snippets.

@savs
Created June 20, 2013 08:19
Show Gist options
  • Save savs/5821085 to your computer and use it in GitHub Desktop.
Save savs/5821085 to your computer and use it in GitHub Desktop.
See what images CQ is serving when using the adaptive image component. Usage: filter.sh /path/to/cq/crx-quickstart
#!/bin/bash
PATH=$1
echo "Monitoring $1/logs/access.log"
/usr/bin/tail -f "$PATH/logs/access.log" | \
GREP_COLOR='01;32' /usr/bin/grep --line-buffered --color=always 'high\|medium\|low\|full\|adapt\.' |\
/usr/bin/cut -d ' ' -f 6,7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment