0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Reads access logs stored in a MySQL database (coming from the SWISS TXT CDN) and sends them to the SMS API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

~> 0.9.0
>= 0
~> 0.19.1
 Project Readme

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.

Gem Version

Installation

Install the sms-logpaser gem:

$ gem install sms-logparser

Setup

Create the database table to track which logs have been parsed:

$ sms-logparser setup

Make a test run:

$ sms-logparser parse --simulate

Usage

See available commands:

$ sms-logparser help

Parse logs from database and send them to the API

$ sms-logparser parse

Show the last parser runs:

$ sms-logparser history

Configuration 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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request