Created
November 4, 2019 10:04
-
-
Save tundeaoni/6ace103ac2e074aad6f76e5de1ff702b to your computer and use it in GitHub Desktop.
List accessed grafana dashboards from access logs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cat access logs> | grep 'referer="' | awk '{print $15}' | sed -e 's|referer="<replace-with-grafana-url>/grafana/d/\(.*\)/\(.*\)?\(.*\)|\2|g' | sort | uniq | grep -v 'referer="' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment