I have this script to report 408 errors on log file...
<?
$data = tail -15000 /usr/local/apache/logs/access_log | grep ' 408 ' | grep -v whm;
echo $data;
?>
which returns
165.194.19.14 - - "-" 408 - 203.106.64.90 - - "-" 408 - 203.106.64.90 - - "-" 408 - 203.106.64.90 - - "-" 408 - 203.106.64.90 - - "-" 408 - 203.106.64.90 - - "-" 408 -
I am trying to allineate the results in this way ..
165.194.19.14 - - "-" 408 -
203.106.64.90 - - "-" 408 -
203.106.64.90 - - "-" 408 -
203.106.64.90 - - "-" 408 -
203.106.64.90 - - "-" 408 -
203.106.64.90 - - "-" 408 -
any idea to do that ? I am trying and retrying without success .
Thank you