log_dir=$(grep access_log /usr/local/openresty/nginx/conf/nginx.conf | grep "\baccess\b" | awk '{print $2}' | sed 's/access.log//g')
cd $log_dir
rm -f access.log-*
rm -f error.log-*
cat /dev/null > access.log
cat /dev/null > error.log

rm -f stream.log-*
cat /dev/null > stream.log
