Logging, Syslog and Log Anaylsys Forums
July 30, 2010, 09:38:37 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
   Home   WIKI BLOG Help Search Recent Topics GoogleTagged Login Register  
Pages: [1]
  Print  
Author Topic: Error syslog  (Read 1633 times)
zem
Newbie
*
Offline Offline

Posts: 7


View Profile Email
« on: August 26, 2009, 01:27:05 am »

Hi,

I'm a beginner on linux and syslog.

I'm try to install syslog with this procedure : http://doc.ubuntu-fr.org/syslog-ng?rev=1222938480

At the end i'v got an error message when i do sudo /etc/init.d/syslog-ng restart.

stopping system logging syslog-ng  failed
starting system logging syslog-ng failed

syntax error at 354

Thanks for your help.
Logged
mutex
Administrator
Newbie
*****
Offline Offline

Posts: 901


View Profile
« Reply #1 on: August 30, 2009, 02:59:33 pm »

can you post your syslog-ng.conf file?
Logged
zem
Newbie
*
Offline Offline

Posts: 7


View Profile Email
« Reply #2 on: September 09, 2009, 02:01:27 am »

Hi,

I've have reinstalled the server. Now, it's ok.

To test it and to understand how it works, i have declared and host (a firewall). So in the syslog-ng.conf, i have added this line :

source firewall {
tcp (ip ("xx.xx.xx.xx") );
};

And when i restart the syslog-ng service, i have this error message :
syslog-ngError bindind socket; addr='AF_INET(xx.xx.xx.xx:514)', error ='cannot assign requested address (99)'
Error initializing source driver; source='firewall'
start failed

Why this error message and what must i do when i want to declare correctly an host ?

Thanks for your help.
Logged
zem
Newbie
*
Offline Offline

Posts: 7


View Profile Email
« Reply #3 on: September 10, 2009, 02:12:38 am »

I have modify the syntaxe by :

line 96 # Ecouter le port 514/TCP
line 97 source network { tcp(port(514); };
line 98 source network { tcp(ip(10.1.126.111)) ; };

line 100 # Ecouter le port 514/UDP
line 101 source network { udp(); };
line 102 source network { udp(10.1.126.111); };

Now, the error message when i restart syslog-ng is : syslog-ngsyntax error at 97. What's wrong ?
Logged
zem
Newbie
*
Offline Offline

Posts: 7


View Profile Email
« Reply #4 on: September 10, 2009, 02:26:28 am »

problem resolv
Logged
Pages: [1]
  Print  

 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!