LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-26-2013, 10:24 AM   #1
mj_official
LQ Newbie
 
Registered: Mar 2013
Posts: 14

Rep: Reputation: Disabled
Sysklogd - Retention / generate report


Hello Masters!

I'm new to linux and I have an ubuntu server 12.04. I have installed sysklogd and followed this tutorial: http://www.youtube.com/watch?v=0JH23leBW5o

I was able to install and get the logs thru /var/log/syslog working with my cisco 2800 series router.

My question is how do I configure a retention period of the logs oldest is 3 months and also can you help me generate an example report like a report for the last week of a specific group?

Thank you!
 
Old 09-26-2013, 12:59 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
Quote:
Originally Posted by mj_official View Post
how do I configure a retention period of the logs oldest is 3 months and
That's usually done by logrotate (as in 'man logrotate').


Quote:
Originally Posted by mj_official View Post
can you help me generate an example report like a report for the last week of a specific group?
Define "report" and "group"?
 
Old 09-26-2013, 01:24 PM   #3
mj_official
LQ Newbie
 
Registered: Mar 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thanks UnSpawn! I'll try to learn how log rotate works but do you have like an example command to accomplish my goal? like syslog reports will be deleted if its older than 3 months. I wanted this so I can save space from my syslog ubuntu server.

About the reports, If i may have an example command on how to extract report on a specific date then convert it over as a text file.

Sorry just a newbie here
 
Old 09-26-2013, 05:57 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
Quote:
Originally Posted by mj_official View Post
Thanks UnSpawn! I'll try to learn how log rotate works but do you have like an example command to accomplish my goal? like syslog reports will be deleted if its older than 3 months. I wanted this so I can save space from my syslog ubuntu server.
Your distribution provides you with all the documentation you need so reading https://help.ubuntu.com/community/Li...s#Log_Rotation tells you exactly where you'll find examples (/etc/logrotate.d/)!


Quote:
Originally Posted by mj_official View Post
About the reports, If i may have an example command on how to extract report on a specific date then convert it over as a text file.
Easiest IMHO would be to install Logwatch and let it generate daily reports. It's configurable so you can choose what you would like to have it report.


Quote:
Originally Posted by mj_official View Post
Sorry just a newbie here
Don't be sorry.
Be inquisitive, read, explore and practice.
But most of all: have fun.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to generate report with user id's in SARG jomy Linux - Networking 2 01-04-2011 04:05 AM
Awstats will not generate any report? MrUmunhum Linux - Software 3 04-22-2010 03:21 PM
How to Generate Report in Freeradius mudresh Linux - Newbie 1 11-05-2009 04:26 AM
auto-generate email report guy_ripper Linux - Software 4 01-23-2008 11:07 PM
Generate Mail report kwtan Linux - Software 1 01-23-2006 05:41 AM


All times are GMT -5. The time now is 12:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration