Skip to content

Instantly share code, notes, and snippets.

@DominicWatts
Last active October 22, 2025 13:23
Show Gist options
  • Select an option

  • Save DominicWatts/9a333411c10e847d71da4886549fcbce to your computer and use it in GitHub Desktop.

Select an option

Save DominicWatts/9a333411c10e847d71da4886549fcbce to your computer and use it in GitHub Desktop.
Cli : Cloud diagnose IP traffic #CLI

Magento cloud diagnose high traffic IP

cd /var/log/platform/[code]

for file in *.log; do echo "Top 20 IPs in $file:" awk -F '"' -v fname="$file" '{print $(NF-1), "in", fname}' "$file" | sort | uniq -c | sort -rn | head -n 20 echo "" done

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