Ideas for splithost, hostname, multiemail in Logwatch 8.0

Mike Tremaine <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
I sat down [finally] and looked through these commandline switches to 
try and bring some order to it. Here is what I see

--splithost creates a loop for each detected host in the logs.

--multiemail can only work with split host and allows you to send each 
part of the splithosts report to different addresses.

--hostname is sort of messed up logwatch pulls hostname from a POSIX 
call but you can define it. And if you use the secret --hostlimit 
command it will only make a report for hostname.

So that is 4 piece to the host report puzzle.

Here is my rough draft please comment.

Remove all the above.

Make --hostlimits [none, splithosts, splitemails, limithost:??]

none is default and logwatch does it's thing as normal.

splithost trips the old splithost feature.

splitemail is splithost with multiemails.

limithost is hostlimit but I'd like to have it define the host(s) to 
limit the report to. I though maybe a special character like ":" could 
be add followed by the hostname you want. Then I thought why not allow a 
list? So would it be easier to add another config option to list the 
hostname(s) or is keeping the config options to a minimum the based 
approach?

I think [and I might be wrong] that --hostlimits 
"limithost:server1,server2" is a valid option command and I could 
obvious split on : and then split for , and get the targets. An empty 
limithost would obviusly be for the hostname provide by the POSIX call.

-Mike
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.