[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 530
  • 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
 
sunnycoderCommented:
use logrotate ... set rotation interval to 24 hours/daily
or set up a cron job ...

man logrotate
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

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