GIST – Extract utm_medium from Apache Log


  • Share on Pinterest

Don’t include the known value ’email’ in the results.

cat access.log | grep utm_medium | grep -v "utm_medium=email" | sed -n 's/.*utm_medium=\([^&]*\).*/\1/p'