Skip to content

void285/goaccess-render-plain-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What for?

This script use jinja2 to generate plain html report from goaccess json file, the template is from goaccess bright theme, and the css are already compressed. The generated html file use no javascript and don't support charts, it suits the needs to send daily report mail.

$ python goaccess-render-plain-html.py -h
usage: render.py [-h] -i INPUT -o OUTPUT [-l LIMIT] [-c] [-s STYLE] [-t TITLE]

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        path of json file
  -o OUTPUT, --output OUTPUT
                        path of output html file
  -l LIMIT, --limit LIMIT
                        limit of data rows in panel table, default 100
  -c, --child           whether generate the child items of a data row in
                        panel table, default not
  -s STYLE, --style STYLE
                        embed the css in html file with "inline"(default), or
                        specify a path
  -t TITLE, --title TITLE
                        the page title, default "Server Statistics"

update

  • 20181013 Delete all unused fonts from base64 code in style.css(21.2KB -> 11.7KB)

About

render plain html report from goaccess json data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published