• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 754
  • Last Modified:

syslog-ng with syntax error

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("192.168.25.110"), port("514"); };
 };

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

Am I missing something ?


0
toyman61
Asked:
toyman61
  • 2
1 Solution
 
woolmilkporcCommented:

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


0
 
woolmilkporcCommented:
... and a ')' is missing after '...514")'
0
 
toyman61Author Commented:
I see your point. Thanks!!!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now