etc/fixbot-logwatch.py
author Tero Marttila <terom@fixme.fi>
Fri, 05 Feb 2010 21:48:14 +0200
changeset 58 31a17b0b5159
parent 51 342850300d6a
child 62 e4db89a5f6bc
permissions -rw-r--r--
remove concept of event_types, the event.type is now just sent as a string
from fixbot.logwatch import filters
from fixbot.logwatch.sources import *

import os.path

## shared secret for API client
api_secret = "xyz"

## Path to logfiles
logwatch_dir = "logs"

## Iterable of LogSource objects
logwatch_sources = (
    Fifo("test", os.path.join(logwatch_dir, "test.fifo"), (
        filters.sudo,
        filters.ssh,
        filters.cron_killer,
        filters.su_nobody_killer,
        filters.all,
    )),
    UnixDatagramSocket("test", os.path.join(logwatch_dir, "test.sock"), (
        filters.sudo,
        filters.ssh,
        filters.cron_killer,
        filters.all,
    )),
)