Import tiarra text log to MySQL(Log::DBI)
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
LICENSE
README.md
config.ini.sample
tiarra_dbi_log_importer.py

README.md

tiarra dbi log importer

This script import tiarra(IRC Proxy) logs to DB (Log::DBI).

Requirement

  • Python (I tested version 2.7.1)
  • Python Modules
    • MySQL-Python (I tested version 1.2.3)

Usage

Firstly, you need to finish these settings.

  • tiarra
  • Log::DBI

Download tar.gz or git clone this repository.

$ git clone git://github.com/yono/tiarra_dbi_log_importer.git
$ cd tiarra_dbi_log_importer

Copy config.ini.sample to config.ini.

$ cp config.ini.sample config.ini

Edit config.ini

$ vim config.ini

You must input username, password, database name for tiarra.

[db]
username=user
password=pass
db=database
charset=utf8

After that, you can run a script tiarra_dbi_log_importer.py

$ python tiarra_dbi_log_importer.py /locate/to/tiarra/log