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-- |
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 | 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 | 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 |
)), |
51
342850300d6a
implement UnixDatagramSocket and LogSource.handleMessage
Tero Marttila <terom@fixme.fi>
parents:
48
diff
changeset
|
21 |
UnixDatagramSocket("test", os.path.join(logwatch_dir, "test.sock"), ( |
58
31a17b0b5159
remove concept of event_types, the event.type is now just sent as a string
Tero Marttila <terom@fixme.fi>
parents:
51
diff
changeset
|
22 |
filters.sudo, |
31a17b0b5159
remove concept of event_types, the event.type is now just sent as a string
Tero Marttila <terom@fixme.fi>
parents:
51
diff
changeset
|
23 |
filters.ssh, |
31a17b0b5159
remove concept of event_types, the event.type is now just sent as a string
Tero Marttila <terom@fixme.fi>
parents:
51
diff
changeset
|
24 |
filters.cron_killer, |
51
342850300d6a
implement UnixDatagramSocket and LogSource.handleMessage
Tero Marttila <terom@fixme.fi>
parents:
48
diff
changeset
|
25 |
filters.all, |
342850300d6a
implement UnixDatagramSocket and LogSource.handleMessage
Tero Marttila <terom@fixme.fi>
parents:
48
diff
changeset
|
26 |
)), |
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
|
27 |
) |