etc/fixbot-logwatch.py
author Tero Marttila <terom@fixme.fi>
Thu, 04 Feb 2010 20:39:53 +0200
changeset 48 ba101beeb062
parent 46 ee58a22e5baa
child 51 342850300d6a
permissions -rw-r--r--
work on logwatch docs, small tweaks
40
b9fdb7710768 move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents: 35
diff changeset
     1
from fixbot.logwatch import filters
b9fdb7710768 move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents: 35
diff changeset
     2
from fixbot.logwatch.sources import *
22
1f1a21852abc .hgignore, .dists, fixbot_plugin.py
terom@fixme.fi
parents:
diff changeset
     3
46
ee58a22e5baa use os.path.join in etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents: 40
diff changeset
     4
import os.path
ee58a22e5baa use os.path.join in etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents: 40
diff changeset
     5
40
b9fdb7710768 move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents: 35
diff changeset
     6
## shared secret for API client
b9fdb7710768 move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents: 35
diff changeset
     7
api_secret = "xyz"
22
1f1a21852abc .hgignore, .dists, fixbot_plugin.py
terom@fixme.fi
parents:
diff changeset
     8
40
b9fdb7710768 move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents: 35
diff changeset
     9
## Path to logfiles
46
ee58a22e5baa use os.path.join in etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents: 40
diff changeset
    10
logwatch_dir = "logs"
40
b9fdb7710768 move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents: 35
diff changeset
    11
b9fdb7710768 move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents: 35
diff changeset
    12
## Iterable of LogSource objects
b9fdb7710768 move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents: 35
diff changeset
    13
logwatch_sources = (
46
ee58a22e5baa use os.path.join in etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents: 40
diff changeset
    14
    Fifo("test", os.path.join(logwatch_dir, "test.fifo"), (
48
ba101beeb062 work on logwatch docs, small tweaks
Tero Marttila <terom@fixme.fi>
parents: 46
diff changeset
    15
        filters.sudo,
ba101beeb062 work on logwatch docs, small tweaks
Tero Marttila <terom@fixme.fi>
parents: 46
diff changeset
    16
        filters.ssh,
ba101beeb062 work on logwatch docs, small tweaks
Tero Marttila <terom@fixme.fi>
parents: 46
diff changeset
    17
        filters.cron_killer,
ba101beeb062 work on logwatch docs, small tweaks
Tero Marttila <terom@fixme.fi>
parents: 46
diff changeset
    18
        filters.su_nobody_killer,
40
b9fdb7710768 move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents: 35
diff changeset
    19
        filters.all,
b9fdb7710768 move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents: 35
diff changeset
    20
    )),
b9fdb7710768 move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents: 35
diff changeset
    21
)