Installing GoAccess to monitor Nextcloud access

Hello,

I’ve installed GoAccess on Ubuntu 20.04, to monitor Nextcloud access.
I’m using apache’s nextcloud-access.log
My problem is that when I’m running the command:
sudo goaccess /var/log/apache2/nextcloud-access.log stats.html

the output shows:
Parsed 1 lines producing the following errors:

Token ‘+0300]’ doesn’t match specifier ‘%h’
Format Errors - Verify your log/date/time format

In goaccess.conf the log format is:

Log Format Options (required)

######################################

The log-format variable followed by a space or \t for

tab-delimited, specifies the log format string.

NOTE: If the time/date is a timestamp in seconds or microseconds

%x must be used instead of %d & %t to represent the date & time.

NCSA Combined Log Format

#log-format %h %^[%d:%t %^] “%r” %s %b “%R” “%u”

NCSA Combined Log Format with Virtual Host

log-format %v:%^ %h %^[%d:%t %^] “%r” %s %b “%R” “%u”

My nextcloud-access.log is as follow:
192.168.10.12 - - [21/Jun/2022:11:42:06 +0300] “GET / HTTP/1.1” 200 3500 “-” "Mo>
192.168.10.12 - - [21/Jun/2022:11:42:06 +0300] "GET /core/css/guest.css?v=ba222d>
192.168.10.12 - - [21/Jun/2022:11:42:06 +0300] "GET /core/img/actions/caret-whit>
192.168.10.12 - - [21/Jun/2022:11:42:06 +0300] "GET /core/img/background.png?v=2>
192.168.10.12 - - [21/Jun/2022:11:42:06 +0300] "GET /core/img/logo/logo.svg?v=1 >

Does anyone can help me with the log format?

You need to adjust your apache2.conf

For example:

LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined

So I have to adjust apache2.conf and not goaccess.conf?
doesn’t seems right

Only if goaccess.conf is not included in apache2.conf