PHP command line application for performing "backend" tasks releatd to Stepup. Currently one command:
- authnlog reads the authentication log file that is generated by the Stepup-Gateway and exports it to a mysql database table.
From a shell execute: stepup-tools authnlog stepup-authentication.log
By default the configuration (e.g. for the database) is read from config-authnlog.json.
authnlog calculates a fingerprint for eache log line and won't add the same log line twice. When a stat_file is configured this file is used to keep track of the last read postion in the logfile, and to continue reading the from the last recorded position when invoked again.
This is composer project.
- Run
composer installto download and install the dependencies. - Copy the included
./dist/config_authnlog.json.distto./config_authnlog.jsonand update it to reflect the local configuraton - Use the included
./dist/authnlog.sqlto create the required database schema and table.