regina/regina.1.md

70 lines
2.1 KiB
Markdown
Raw Normal View History

2022-11-23 02:00:43 +01:00
% NICOLE(1) nicole 2.0
% Matthias Quintern
% April 2022
2022-12-14 14:55:04 +01:00
# NAME
2022-11-23 02:00:43 +01:00
**R**uling **E**mpress **G**enerating **I**n-depth **N**ginx **A**nalytics (obviously)
Regina is an analytics tool for nginx.
# SYNOPSIS
2022-12-14 14:55:04 +01:00
| **regina** --config CONFIG_FILE [OPTION...]
2022-11-23 02:00:43 +01:00
2022-12-14 14:55:04 +01:00
# DESCRIPTION
It collects information from the nginx access.log and stores it in a sqlite3 database.
Regina supports several data visualization configurations and can generate an admin-analytics page from an html template file.
2022-11-23 02:00:43 +01:00
## Command line options
2022-12-14 14:55:04 +01:00
**-h**, **--help**
: Show the the possible command line arguments
2022-11-23 02:00:43 +01:00
2022-12-14 14:55:04 +01:00
**-c**, **--config** config-file
: Retrieve settings from the config-file
2022-11-23 02:00:43 +01:00
2022-12-14 14:55:04 +01:00
**--access-log** log-file
: Overrides the access_log from the configuration
2022-11-23 02:00:43 +01:00
2022-12-14 14:55:04 +01:00
**--collect**
: Collect information from the access_log and store them in the databse
2022-11-23 02:00:43 +01:00
2022-12-14 14:55:04 +01:00
**--visualize**
: Visualize the data from the database
2022-11-23 02:00:43 +01:00
2022-12-14 14:55:04 +01:00
**--update-geoip** geoip-db
: Recreate the geoip part of the database from the geoip-db csv. The csv must have this form: lower, upper, country-code, country-name, region, city
2022-11-23 02:00:43 +01:00
# INSTALLATION AND UPDATING
2022-12-14 14:55:04 +01:00
To update regina, simply follow the installation instructions.
2022-11-23 02:00:43 +01:00
## pacman (Arch Linux)
2022-12-14 14:55:04 +01:00
Installing regina using the Arch Build System also installs the man-page and a zsh completion script, if you have zsh installed.
2022-11-23 02:00:43 +01:00
```shell
2022-12-14 14:55:04 +01:00
git clone https://github.com/MatthiasQuintern/regina.git
cd regina
2022-11-23 02:00:43 +01:00
makepkg -si
```
## pip
2022-12-14 14:55:04 +01:00
You can also install regina with python-pip:
2022-11-23 02:00:43 +01:00
```shell
2022-12-14 14:55:04 +01:00
git clone https://github.com/MatthiasQuintern/regina.git
cd regina
2022-11-23 02:00:43 +01:00
python3 -m pip install .
```
2022-12-14 14:55:04 +01:00
You can also install it system-wide using `sudo python3 -m pip install .`
2022-11-23 02:00:43 +01:00
If you also want to install the man-page and the zsh completion script:
```shell
2022-12-14 14:55:04 +01:00
sudo cp regina.1.man /usr/share/man/man1/regina.1
sudo gzip /usr/share/man/man1/regina.1
sudo cp _regina.compdef.zsh /usr/share/zsh/site-functions/_regina
sudo chmod +x /usr/share/zsh/site-functions/_regina
2022-11-23 02:00:43 +01:00
```
# CHANGELOG
## 1.0
- Initial release
# COPYRIGHT
Copyright © 2022 Matthias Quintern. License GPLv3+: GNU GPL version 3 <https://gnu.org/licenses/gpl.html>.\
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.