... | ... | @@ -7,9 +7,15 @@ Os logs da API do SimCAQ estão sendo filtradas diariamente da seguinte forma: |
|
|
|
|
|
``
|
|
|
directory='/var/log/nginx'
|
|
|
|
|
|
name=`date +'%d-%m-%Y'`
|
|
|
|
|
|
mkdir $directory/analise/failedRequests/`echo $name`
|
|
|
zcat $directory/access.log.2.gz | grep -v 200 > $directory/analise/failedRequests/$name/geral.txt
|
|
|
|
|
|
zcat $directory/access.log.2.gz | grep -v 200 >
|
|
|
|
|
|
$directory/analise/failedRequests/$name/geral.txt
|
|
|
|
|
|
python3 $directory/analise/aut.py < $directory/analise/failedRequests/$name/geral.txt
|
|
|
``
|
|
|
|
... | ... | |