#!/usr/bin/python # -*- coding: utf8 -*- # prueba para ejecutar wikisquilter sobre un log from datetime import date import test_helper from helpers.logging_helper import init_logger import run_wikisquilter init_logger('run_wsq') # vamos a procesar WikiSquilter sobre 3 logs.. day = date.today().replace(year=2013, month=01, day=01) run_wikisquilter.run(day) day = date.today().replace(year=2013, month=01, day=02) run_wikisquilter.run(day) day = date.today().replace(year=2013, month=01, day=05) run_wikisquilter.run(day)
#!/usr/bin/python # -*- coding: utf8 -*- # prueba para popular la DB test_analysis from datetime import date import test_helper from helpers.logging_helper import init_logger import populate_analysis init_logger("pop_analysis") from helpers.config_helper import getConfig # vamos a popular analysis con 3 fechas day = date.today().replace(year=2013, month=01, day=01) populate_analysis.run(day) day = date.today().replace(year=2013, month=01, day=02) populate_analysis.run(day) day = date.today().replace(year=2013, month=01, day=05) populate_analysis.run(day)
#!/usr/bin/python # -*- coding: utf8 -*- # prueba para limpiar por completo la DB squidlogs import test_helper from helpers.logging_helper import init_logger import clear_squidlogs init_logger('clear_squidlogs') clear_squidlogs.run()
#!/usr/bin/python # -*- coding: utf8 -*- # prueba para la transferencia de logs desde equipo remoto a local from datetime import date import test_helper from helpers.logging_helper import init_logger import transfer_log init_logger("transfer_log") # vamos a descargar logs para 3 fechas.. day = date.today().replace(year=2013, month=01, day=01) transfer_log.run(day) day = date.today().replace(year=2013, month=01, day=02) transfer_log.run(day) day = date.today().replace(year=2013, month=01, day=05) transfer_log.run(day)