[syslog-ng] Error while configuring destination for network

Girish Kumar girish.kumar at al-enterprise.com
Sun Feb 28 17:17:07 CET 2016


Thank you so much. Its working now.

I referred following link. Here “ip” is present.  So got confused.
https://www.balabit.com/sites/default/files/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/configure-clients.html


From: syslog-ng-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Várady, László
Sent: Sunday, February 28, 2016 6:50 PM
To: Syslog-ng users' and developers' mailing list
Subject: Re: [syslog-ng] Error while configuring destination for network

Hi,

It's a bit tricky on the destination side, you don't need the "ip" option:

https://www.balabit.com/sites/default/files/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html-single/index.html#configuring-destinations-syslog

@version:3.7
@include "scl.conf"

source s_local {
    internal();
};

destination d_network { syslog("135.254.163.151" transport("tcp")); };

destination d_local {
    file("/var/log/messagesgiri");
};

log {
    source(s_local);
    destination(d_local);
    destination(d_network);
};

Regards,
László Várady

On Sun, Feb 28, 2016 at 11:05 AM, Girish Kumar <girish.kumar at al-enterprise.com<mailto:girish.kumar at al-enterprise.com>> wrote:
Hi  All,

In the conf  file I have  added destination as  network. But I am getting following error while spawning the syslog-ng .

Could you please help me on this

[root at localhost vsabarin]# /sbin/syslog-ng
Error parsing afsocket, syntax error, unexpected KW_IP, expecting LL_IDENTIFIER or LL_STRING in /etc/syslog-ng/syslog-ng.conf at line 12, column 32:

destination d_network { syslog(ip("135.254.163.151") transport("tcp")); };


My syslog-ng.conf file

@version:3.7
@include "scl.conf"

source s_local {
    internal();
};

destination d_network { syslog(ip("135.254.163.151") transport("tcp")); };

destination d_local {
    file("/var/log/messagesgiri");
};

log {
    source(s_local);
     destination(d_local);
   destination d_network);
};

Regards,
Girish

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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20160228/5fc12aab/attachment-0001.htm 


More information about the syslog-ng mailing list