LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 09-12-2010, 08:06 PM   #1
Cyberman
Member
 
Registered: Aug 2005
Distribution: Debian Stable
Posts: 184

Rep: Reputation: 17
i deleted /var/log/syslog and need it back


#@$%$

I was trying to solve an issue with my dhcpd.conf file, and I was looking through the syslog to see what the issue is. The file was really long, and I was sitting around about 2 minutes before I decided, "ok, f this, I'm going to delete this and rerun the dhcp3-server to get the error again."

I deleted the file, and now I can't get it back. It won't come back after I "/etc/init.d/dhcp3-server restart"

What do I do?

ubuntu 10.04
 
Old 09-12-2010, 08:16 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
The syslog file is a log for the entire system, not just the DHCP server. So restarting it won't bring back the file. You need to restart the syslog daemon itself.

For future reference, you should be using tools like grep and tail to just see sections of large log files like that. For example, the command "tail /var/log/syslog" would just show you the last 10 lines of the file (in other words, the things that happened the most recently).
 
Old 09-12-2010, 08:54 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,122

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
Just do a touch on the syslog, chown, and off you go.
Might need to do "sudo reload rsyslog", maybe not.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
What those IP's mean in /var/log/syslog ? geropero Linux - Newbie 5 09-04-2009 02:25 PM
/var/log/syslog messages. gbowden Slackware 2 02-25-2006 05:00 PM
Deleted /var/log/messages, can't log any files-iptables chingyenccy Linux - Newbie 7 02-27-2005 04:03 PM
/var/log/syslog George666 Slackware 4 03-19-2004 07:34 AM
re: where is /var/log/syslog ergo_sum Red Hat 10 11-04-2003 06:27 PM


All times are GMT -5. The time now is 11:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration