Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 477
  • Last Modified:

SYSLOGD

hi,
i previously asked about the SYSLOGD in Linux that how can i monitor the network  and this was the solution provided by SUNNYCODER.

"
In the syslog.conf comment all entries and all a line

*.*       @hostname_of_linux_machine_or_the_IP_address

next restart syslogd with -r option
on the linux machine on which you would be receiving logs, add configuration in syslog.conf .. this will decide which messages go in which directory ... if you are happy with the default, then do not touch it

restart syslogd with -r option "

 Now I wanna ask that how can i mentain the daily file ( separate files for daily logs date wise ). is there any method of doing that. Simply how can i manage the logs in separate files.
thanks,

0
atiqahmed
Asked:
atiqahmed
1 Solution
 
rayktrzCommented:
The log files should already be being rotated on a weekly basis, by using logrotate under cron control.

In Redhat the cron file is /etc/cron.daily/logrotate,
which uses the configuration file /etc/logrotate.conf,
which in turn includes additional configurations from the files /etc/logrotate.d/*

edit all the config files, changing weekly to daily, where required. Also, if you have an extra log file that this is require for, then add a new configuration in /etc/logrotate.d, or add it to the list in /etc/logrotate.d/syslog.

the default nuber of 'old' copies stored is 4, you may want to increase this by adding the parameter 'rotate 30', or whatever, to the appropriate configuration (probably  /etc/logrotate.d/syslog)
0
 
Karl Heinz KremerCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Answered by rayktrz
Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

khkremer
EE Cleanup Volunteer
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now