LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-06-2010, 03:26 PM   #1
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Rep: Reputation: 35
Question Simple syslogd for Ubuntu 10.04?


Hello

I need a very simple SyslogD server for Ubuntu 10.04 so I can get data from a small embedded device I'm trying to get to work.

I tried to install syslog-ng, but it fails after start. It look like I need to edit its configuration file, but all I found through Google are complicated tutorials to install syslog-ng, MySQL, PHP, Apache, etc.

By any chance, does someone have a really simple tutorial on how to get a syslogd server installed in Ubuntu?

Thank you.
 
Old 12-06-2010, 03:46 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
All normal linux distributions run a syslog server by default. That's probably why your attempts to run syslog-ng (which is ace btw.) Fail - there's already one running. No idea what it is ubuntu runs normally, but run ps -ef and you'll find it listed.
 
Old 12-07-2010, 02:03 PM   #3
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Original Poster
Rep: Reputation: 35
Thanks for the tip. It seems like there are several syslogd alternatives for Ubuntu, and I tried sysklogd which seems like the simplest... but can't get it to work:

Code:
# apt-get install sysklogd
# vi /etc/default/syslogd: Just edited the single line in the default file as SYSLOGD="-r"
# /etc/init.d/networking  restart
# netstat -na
... but no application listens on UDP 514.

Does someone know whether I should add something else to get sysklogd up and running?

Thank you.
 
Old 12-07-2010, 04:11 PM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hi littlebigman,

according to this http://linuxcommand.org/man_pages/sysklogd8.html manual you'll have to use the -r option in order to get syslogd listening to the network. Your code does not show this.

Markus
 
Old 12-07-2010, 04:14 PM   #5
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Original Poster
Rep: Reputation: 35
Thanks Markus.

For those looking for the same thing: Contrary to what I read in some docs, it's not /etc/init.d/networking that must be used but (logically) /etc/init.d/sysklogd.

Sysklogd comes with default settings in /etc/syslog.conf which are good enough to get started. If you want to allow remote hosts to log data through the network, just edit /etc/default/syslogd.

Code:
# dpkg -L sysklogd
# vi /etc/default/syslogd
# /etc/init.d/sysklogd start
# netstat -na
# tail -f /var/log/syslog
HTH,

Last edited by littlebigman; 12-07-2010 at 04:19 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't find /etc/default/syslogd on this version of Ubuntu satimis Ubuntu 2 10-20-2010 02:34 AM
LXer: Ubuntu Control Center (ucc) - Simple tool for ubuntu administration LXer Syndicated Linux News 1 05-27-2010 10:51 PM
Ubuntu and Bind - Named log file is not logging info after syslogd restarts Spacetrucker Linux - Server 7 05-13-2009 10:56 AM
LXer: Simple Guide How to Upgrade Ubuntu 8.04 (Hardy Heron) to Ubuntu 8.10 (Intrepid LXer Syndicated Linux News 0 10-31-2008 10:50 AM
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 02:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration