기존의 로그파일이 조금이라도 변경된 사항이 있으면.
syslog는 로그파일을 쓰지 않습니다.
echo "" >> '생성하고자하는
로그파일' ( 로그를 다 지운다는 의미이죠. )
아님 rm -rf '생성하고자하는
로그파일'
지운다음
/etc/rc.d/init.d/syslog restart
해주시면 될듯합니다. 이렇게 해도 안된다면 설정파일 문제가
대부분일
겁니다. 그럼..
[김진수]님이 남기신 글:
>안녕하세요..
>새로 서버를 맡게 되었는데.. 확인해 보니.. 로그 기록이 남길
않네요..
>messages랑 secure, boot.log, cron, maillog, sppooler 등
syslog.conf에
>서 설정되는 모든 로그가 기억이 남길 않네요..
>예전에 관리하던 사람이 하드 용량등의 문제로 막아둔것
같은데.. 어디서
>막은 것인지 모르겠네요..
>(현재 연락이 안됨..)
>syslog.conf의 설정 문제는 이상이 없다고 생각이
되는데..
>그럼 어디를 살펴 보아야 할까요??
>
>syslogd는 잘 돌아가고 잇으며.. 혹시나 해서 restart를 시켜도
동일하네
>요..
>
>
>syslog.conf의 내용입니다..
>##########################################
># Log all kernel messages to the console.
># Logging much else clutters up the screen.
>#kern.* /dev/console
>
># Log anything (except mail) of level info or higher.
># Don't log private authentication messages!
>*.info;mail.none;news.none;authpriv.none;cron.none /var/log/messages
>
># The authpriv file has restricted access.
>authpriv.* /var/log/secure
>
># Log all the mail messages in one place.
>mail.* /var/log/maillog
>
>
># Log cron stuff
>cron.* /var/log/cron
>
># Everybody gets emergency messages, plus log them on another
># machine.
>*.emerg *
>
># Save mail and news errors of level err and higher in a
># special file.
>uucp,news.crit /var/log/spooler
>
># Save boot messages also to boot.log
>local7.* /var/log/boot.log
>
>#
># INN
>#
>news.=crit /var/log/news/news.crit
>news.=err /var/log/news/news.err
>news.notice /var/log/news/news.notice
>#####################################################################
>##
>
>별 이상 없어 보이는데.. 기록이 쌍이지 않네요..
>어떻게 하면.. 기록이 쌓일수 있는지요??
>
>꼭 좀 알려주세요..
>그럼 수고하세요..
>후다닥..
========================================
|