josephgagliardi / chaplin

Localized server analytics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

    e88'Y88 888                      888 ,e,                   -+syys/.             
  d888  'Y 888 ee   ,"Y88b 888 88e  888  "  888 8e          +NMMMMMMMMd-                
C8888     888 88b "8" 888 888 888b 888 888 888 88b         yMMMMMMMMMMMM:              
 Y888  ,d 888 888 ,ee 888 888 888P 888 888 888 888        .MMMMMMMMMMMMMd                
  "88,d88 888 888 "88 888 888 88"  888 888 888 888        -MMMMMMMMMMMMMd                
                      888                               +yhMMMMMMMMMMMMMNyy/             
                      888                               -//////////////////.              

Chaplin is a local virtual environment built with Vagrant designed to let developers render beautiful and useful analytics reports from static server logs using GoAccess.

Setup

1. Clone repo

git clone https://github.com/josephgagliardi/chaplin.git

2. Navigate into directory

cd chaplin

3. Replace server log file at chaplin/apache-logs/sample.log

4. Run Vagrant up

5. View site

http://192.168.33.10

Working with Reports

1. Login to view reports

admin chaplin

2. Run chaplin-build to re-run reports

Other tipsls a

Note: Stay on Vagrant 1.8.5 to ensure Sharing works https://releases.hashicorp.com/vagrant/1.8.5/

Share with others

vagrant share

Build reports

chaplin-build

Add new users

chaplin-authorize <username>

Permissions use Apache htpasswd

  • Username/Passwords are stored as encrypted key-value pairs in /etc/apache2/.htpasswd
  • Empty this file of its contents to revoke access of default account
  • Note that if you remove the file entirely versus merely removing its contents you will need to run

sudo htpasswd -c /etc/apache2/.htpasswd charlie

About

Localized server analytics


Languages

Language:PHP 97.4%Language:Shell 2.6%