Created
September 10, 2020 04:10
-
-
Save teru01/e08f2f6a2c93406e434340b4b0643fb6 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
set -ux | |
cd "${0%/*}" | |
dir="${1%/}" | |
cp kataribe.toml $dir | |
cat $dir/access.log | kataribe > $dir/result.txt | |
sudo cp -a /var/log/mysql/mysql-error.log $dir | |
sudo cp -a /var/log/mysql/mysql-slow.log $dir | |
# パーミッションまわり調整 | |
sudo chown -R $USER:$GROUPS $dir | |
pt-query-digest $dir/mysql-slow.log > $dir/digest.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment