SMS Logparser
sms-logparser - Logparser for Simplex Media Server (SMS). Reads access logs stored in a MySQL database (coming from the SWISS TXT CDN) accumulates and sends them to the SMS API.
Installation
Install the sms-logpaser gem:
$ gem install sms-logparserSetup
Create the database table to track which logs have been parsed:
$ sms-logparser setupMake a test run:
$ sms-logparser parse --simulateUsage
See available commands:
$ sms-logparser helpParse logs from database and send them to the API
$ sms-logparser parseShow the last parser runs:
$ sms-logparser historyConfiguration file
sms-logparser tries to read default options from a yaml file named '.sms-logparser.yml' placed in your home directory. Using the "-c/--config" flag you can adapt the path to the configuration file.
An example configuration (~/.sms-logparser.yml) for adapting the default MySQL password and setting the api_key:
mysql_password: 'my!secret'
api_key: 'xqugl-hjh54-dr97-9kjdkjwi988d-123456'Development
- check out the git repo (
git clone <repo>) - implement your changes
- run the tests (
rake test) - bump the version number commit your changes and release a new version of the gem (
rake release)
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request