Goaccess: No charts on HTML output

Created on 7 Nov 2019  路  12Comments  路  Source: allinurl/goaccess

Hi
I run goaccess like:
cat access_log.* | goaccess --log-format=COMBINED -a -o stats.log.html
But i can't see any chart on the browser, I get only tables.
goaccess shows no error while parsing

My log lines are like follows:

18.237.44.188 - - [07/Nov/2019:01:16:58 +0100] "GET / HTTP/1.1" 404 466 "-" "Go-http-client/1.1" "-"
54.188.179.41 - - [07/Nov/2019:01:49:37 +0100] "GET / HTTP/1.1" 404 523 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64)AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36" "-"
81.203.146.107 - - [07/Nov/2019:07:50:14 +0100] "GET /nueva_web HTTP/1.1" 301 500 "-" "Mozilla/5.0 (iPad; CPU OS 9_3_5 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13G36 Safari/601.1" "-"
81.203.146.107 - - [07/Nov/2019:07:50:14 +0100] "GET /nueva_web/ HTTP/1.1" 200 5696 "-" "Mozilla/5.0 (iPad; CPU OS 9_3_5 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13G36 Safari/601.1" "-"
bug duplicate html report

All 12 comments

Just saw Issue #1570
And revovig the extra "j!" fixes the problem

Did you build from development to fix this issue?

No, I got it installed from the SuSE Leap 15.0 repo (1.3-lp150.10.1)
What fixed the issue was to manually edit the html output and remove the "j!"

Would you be able to build from development and confirm that it fixes the issue? Thanks.

$ git clone https://github.com/allinurl/goaccess.git
$ cd goaccess
$ autoreconf -fiv
$ ./configure --enable-utf8 --enable-geoip=legacy
$ make
# make install

gives error to me:

checking for GeoIP_new in -lGeoIP... no
configure: error: 
    *** Missing development files for the GeoIP library

I tried

$ git clone https://github.com/allinurl/goaccess.git
$ cd goaccess
$ autoreconf -fi
$ ./configure --enable-geoip --enable-utf8
$ make
# make install

and I could build, but html output is still broken (needs to be fixed manually)

@allinurl
I compiled from development without errors today and did not display graphics, I noticed the presence of "! J" as in the print below
image
@ahelito

how did you do to revovig the extra "j!"?

I edit the html output each time i generate output. I use sed:
sed -i -e 's/j!<\/script>/<\/script>/g' log.html

I compiled it through the stable version and it worked well.

@ahelito @vitaocode can I ask you to please build again from development as we just pushed some new commits and see if that solves the issue. Thanks.

I just built GoAccess from the latest sources and I can confirm the charts are back. Thanks!

@allinurl i build from development and works fine! the charts are back. :)
image

Great to hear that. Thank you guys for the update! Stay tuned for the upcoming updates :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

deosha picture deosha  路  3Comments

mhipo1364 picture mhipo1364  路  3Comments

SerenaAi picture SerenaAi  路  3Comments

eroldru picture eroldru  路  3Comments

Tassleh0ff picture Tassleh0ff  路  4Comments