[syslog-ng] get destination(s) based on log facility and severity

Gergely Nagy algernon at balabit.hu
Tue Jun 7 18:10:24 CEST 2011


Dejan Muhamedagic <dejan at suse.de> writes:

> No. The task is to get the destination (log file) for the given
> facility. Right now I have brute force discovery like:
>
> # logger -p facility.info unique_message
> # grep -l unique_message /var/log/*
>
> I'd like to be able to query syslog-ng and get a list of
> destinations.

I do not think that's possible to do, save parsing the config file.

It may be possible to add some debugging stuff to syslog-ng, that would
echo the information you need, but it's not currently present.

I also fail to see why this would be useful, but that might just be my
lack of imagination O:)

-- 
|8]


More information about the syslog-ng mailing list