Solved

SYSLOGD

Posted on 2003-11-19
4
466 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Recover Lacie Edmini data. 11 77
Exchange Server Send connector and DNS Round Robin ? 6 78
database connection error mysql stops 7 82
Krita v3 Linux Mint/Ubuntu 16.04 9 77
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

710 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