etc/fixbot-logwatch.py
changeset 40 b9fdb7710768
parent 35 5b6043ce9686
child 46 ee58a22e5baa
equal deleted inserted replaced
39:e82b6df5baa3 40:b9fdb7710768
     1 import logwatch_filters as filters
     1 from fixbot.logwatch import filters
     2 from logwatch_sources import *
     2 from fixbot.logwatch.sources import *
     3 
     3 
     4 def sources () :
     4 ## shared secret for API client
     5     """
     5 api_secret = "xyz"
     6         Return a sequence of LogSource objects
       
     7     """
       
     8 
     6 
     9     return (
     7 ## Path to logfiles
    10         Fifo("auth", "logs/auth.fifo", (
     8 logwatch_dir = "logs/"
    11             filters.sudo,
       
    12             filters.cron_killer,
       
    13             filters.all,
       
    14         )),
       
    15         Fifo("foo", "foo", (
       
    16             filters.all,
       
    17         )),
       
    18     )
       
    19 
     9 
       
    10 ## Iterable of LogSource objects
       
    11 logwatch_sources = (
       
    12     Fifo("test", logwatch_dir + "/test.fifo", (
       
    13         filters.all,
       
    14     )),
       
    15 )