[syslog-ng] Configuring syslog to log on both central server as well as local host( 3.0.7 version)

vijay bhaskarpeddi at gmail.com
Mon Mar 28 08:33:49 CEST 2011


hi,
    you can have multiple destinations. you can write another
destination in config file for example writing logs in local system
file

   destination     localhost {
        file("/var/log/$YEAR$MONTH$DAY.$HOST.log");
   };

 use this destination in log


      vijay

On Mon, Mar 28, 2011 at 11:34 AM, Rakesh Rajasekharan
<rakesh.rajasekharan at gmail.com> wrote:
> Hi,
>
> I am using syslog-ng 3.0.7 version. I have a requirement to log the messages
> on both the central server as well as my local machine. The central server
> is a HPUX machine and
> my cleint is a SUSE machine. From my SUSE machine I am able to get he
> messages logged on to the HPUX machine by this entry in my conf file
>
> destination loghost {
>         tcp("20.5.68.85" port(514));
> };
> 20.5.68.85 being the ip for the central server.
> This works perfectly fine.
> But is this possible to ge the logs generated on my SUSE machine as well
> simulatneously.
> Please let me know if there seems any way around to do this.
>
> Thanks,
> Rakesh
>
> ______________________________________________________________________________
> 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
>
>
>


More information about the syslog-ng mailing list