[syslog-ng] Error while configuring destination for network

Várady, László laszlo.varady at balabit.com
Sun Feb 28 14:20:29 CET 2016


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> 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/5549d31c/attachment.htm 


More information about the syslog-ng mailing list