mkdir -p /usr/local/mod_security_summary/report/`date +%Y%m%d` echo "Severity , rule_id" > /usr/local/mod_security_summary/report/`date +%Y%m%d`/No6 ; find /usr/local/mod_security_summary/`date +%Y%m%d` -type f | xargs grep REQUEST_HEADERS:Host | grep ModSecurity: | cut -d "[" -f 9,12 | tr -d "id" | tr -d "][severty" | tr -d \" | sed 's/\(.*\) \(.*\)/\2,\1/g' | sort | uniq >> /usr/local/mod_security_summary/report/`date +%Y%m%d`/No6
コメント