LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   I've deleted a log file to save space and... (https://www.linuxquestions.org/questions/linux-general-1/i%27ve-deleted-a-log-file-to-save-space-and-112147/)

ganninu 11-04-2003 03:09 AM

I've deleted a log file to save space and...
 
I've deleted a log file to save space but now I'm not capturing logs from the cisco server. Is it a normal thing when one deletes a log file? (I've deleted it from /var/log/cisco.log)

ganninu 11-04-2003 03:57 AM

.... In fact I had to reboot the computer for the logs to be captured again... I think I have to use logrotate to limit the size of the log files.

lyx0m 11-04-2003 11:21 AM

you could have done also instead of rebooting your computer do a: touch /var/log/cisco.log

lyx0m
:Pengy:

Blinker_Fluid 11-04-2003 12:03 PM

next time 'cat /dev/null > /var/log/cisco.log' instead of rm...
Some logs will recreate themselves and others won't.


All times are GMT -5. The time now is 04:48 PM.