allinurl / goaccess

GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
https://goaccess.io
MIT License
18.29k stars 1.1k forks source link

error log #2113

Closed mathoyus closed 3 years ago

mathoyus commented 3 years ago
root@ubuntu:~# goaccess /var/log/apache2/error.log --log-format=COMBINED -a -o /var/www/html/er.html     
==1894== GoAccess - Copyright (C) 2009-2020 by Gerardo Orellana
==1894== https://goaccess.io - <hello@goaccess.io>
==1894== Released under the MIT License.
==1894==
==1894== FILE: /var/log/apache2/error.log
==1894== Parsed 10 lines producing the following errors:
==1894==
==1894== Token '2021/05/18' doesn't match specifier '%h'
==1894== Token '2021/05/18' doesn't match specifier '%h'
==1894== Token '2021/05/18' doesn't match specifier '%h'
==1894== Token '2021/05/18' doesn't match specifier '%h'
==1894== Token '2021/05/18' doesn't match specifier '%h'
==1894== Token '2021/05/18' doesn't match specifier '%h'
==1894== Token '2021/05/18' doesn't match specifier '%h'
==1894== Token '2021/05/18' doesn't match specifier '%h'
==1894== Token '2021/05/18' doesn't match specifier '%h'
==1894== Token '2021/05/18' doesn't match specifier '%h'
==1894==
==1894== Format Errors - Verify your log/date/time format
root@ubuntu:~# 

2021/05/18 18:09:02 [error] 95789#95789: *3128659 upstream timed out (110: Connection timed out) while connecting to upstream, client: 10.194.204.214, server: www.gzinternetcourt.gov.cn, request: "POST /open/document/getOpenDocumentsInfo HTTP/1.1", upstream: "http://59.42.214.250:4007/open/document/getOpenDocumentsInfo", host: "10.194.204.82"
2021/05/18 18:10:02 [error] 95788#95788: *3128982 upstream timed out (110: Connection timed out) while connecting to upstream, client: 10.194.204.214, server: www.gzinternetcourt.gov.cn, request: "POST /open/document/getOpenDocumentsInfo HTTP/1.1", upstream: "http://59.42.214.250:4007/open/document/getOpenDocumentsInfo", host: "10.194.204.82"
[Wed May 19 09:26:17.360089 2021] [mpm_event:notice] [pid 1181:tid 140564546893696] AH00489: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Wed May 19 09:26:17.362400 2021] [core:notice] [pid 1181:tid 140564546893696] AH00094: Command line: '/usr/sbin/apache2'
mathoyus commented 3 years ago

how do i fix this,

allinurl commented 3 years ago

Looks like an error log. You need consistent fields in that log.

63070016 commented 10 months ago

how to fix it