Hi

2 sec of googling with "sample syslog-ng conf" and found
http://www.campin.net/syslog-ng.conf

It uses a lot of useless conf, but for what i understood, you have to use the following destination structure :

# set it up
destination std {
    file("/var/log/HOSTS/$HOST/$YEAR/$MONTH/$DAY/$FACILITY_$HOST_$YEAR_$MONTH_$DAY"
        owner(root) group(root) perm(0600) dir_perm(0700) create_dirs(yes)
    );
};

For the source & option structure, i'm sure you'll find some usefull ones in this page.

:)

bye


2009/11/3 Christopher Barry <christopher.barry@rackwareinc.com>
Hi All,

Looking for good config example that:
sets up syslog-ng as the central log server catching standard remote
syslog hosts logs, placing them in hostname dirs, with all of the
remotes hosts logfiles intact in the hostname dirs. Creating 'date' dirs
above the hostname dirs would be sweet too.

I've been googling around, but can't really find what I'm after. Did see
this, which is essentially what I want, but it seemed to be left
unanswered.
http://www.syslog.org/forum/syslog-ng/individual-files/


Thanks for any pointers to docs/samples you can give me.


Cheers,
-C

______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.campin.net/syslog-ng/faq.html