Solved

SYSLOGD

Posted on 2003-11-19
4
463 Views
Last Modified: 2010-04-21
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
Comment
Question by:atiqahmed
4 Comments
 

Accepted Solution

by:
rayktrz earned 30 total points
ID: 9798365
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
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10303658
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question