syslog-ng with syntax error

Posted on 2008-11-10
Last Modified: 2012-06-27
I'm trying to set up my Ubuntu Linux box to send syslog messages to a central server using version 2.0.9 of syslog-ng.
In the syslog-ng.conf I defined the following destination object:

# remote destination
destination d_udp { udp(""), port("514"); };

But when I restart the syslog-ng deamon it reports "syntax error" in this line.

Am I missing something ?

Question by:toyman61
    LVL 68

    Accepted Solution


    The line should read correctly -
    destination d_udp   { udp("" port(514)); };
     look at the ','  and the parentheses (), the '),' is not correct after '...110"'

    LVL 68

    Expert Comment

    ... and a ')' is missing after '...514")'

    Author Closing Comment

    I see your point. Thanks!!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now