log:
11.22.111.55 10.22.128.81 POST F54125B93F348E82B3B49E24542A085A /rest/call [26/Nov/2019:15:14:13 +0800] POST /rest/call HTTP/1.1 - 555
goaccess.conf:
time-format %T
date-format %d/%b/%Y
log-format %h %a %m %S %U [%d:%t %^] %^ %^ %H %^ %L
batchConverse.sh:
#!/bin/sh
LANG="en_US.UTF-8"
#LANG="zh_CN.UTF-8"
logs=/root/wurd/goaccess/logs-0106/localhost_access
gologs=$logs"/gologs_en"
if [ ! -d $gologs ]; then
mkdir -p $gologs
fi
for file in `ls $logs`
do
if [ -f $logs"/"$file ]; then
path=$logs"/"$file
echo $path
goaccess -f $path -p goaccess.conf -a > $gologs"/"$file".html"
fi
done
cat $logs"/"* | goaccess -e 127.0.0.1 -p goaccess.conf -a > $gologs"/all.html"
1509

被折叠的 条评论
为什么被折叠?



