From cfe0d4c9faf9ce021e51b26459e519413faea66c Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Thu, 10 Apr 2014 19:07:27 +0530 Subject: [PATCH] Anemometer Logroation Fix --- usr/local/sbin/easyengine | 1 - 1 file changed, 1 deletion(-) diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index 10bd25ab..290d404d 100644 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -515,7 +515,6 @@ PHP_PACKAGES() --no-report --limit=0% --filter=" \$event->{Bytes} = length(\$event->{arg}) and \$event->{hostname}=\"$HOSTNAME\"" /var/log/mysql/slow.log &>> $INSTALLLOG # Execute On MySQL Logrotation - ANEMOMETERLOG=$(echo "pt-query-digest --user=anemometer --password=$ANEMOMETERPASS --review D=slow_query_log,t=global_query_review --review-history D=slow_query_log,t=global_query_review_history --no-report --limit=0% --filter=" \$event-\>{Bytes} = length\(\$event-\>{arg}\) and \$event-\>{hostname}=\"$HOSTNAME\"" /var/log/mysql/slow.log &> /dev/null 2>&1") sed -i "/endscript/,/}/d" /etc/logrotate.d/mysql-server echo -e " pt-query-digest --user=anemometer --password=$ANEMOMETERPASS \\" >> /etc/logrotate.d/mysql-server echo -e " --review D=slow_query_log,t=global_query_review \\" >> /etc/logrotate.d/mysql-server