LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Sysklogd - Retention / generate report (https://www.linuxquestions.org/questions/linux-newbie-8/sysklogd-retention-generate-report-4175478636/)

mj_official 09-26-2013 09:24 AM

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!

unSpawn 09-26-2013 11:59 AM

Quote:

Originally Posted by mj_official (Post 5035273)
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 (Post 5035273)
can you help me generate an example report like a report for the last week of a specific group?

Define "report" and "group"?

mj_official 09-26-2013 12:24 PM

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 :)

unSpawn 09-26-2013 04:57 PM

Quote:

Originally Posted by mj_official (Post 5035410)
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 (Post 5035410)
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 (Post 5035410)
Sorry just a newbie here :)

Don't be sorry.
Be inquisitive, read, explore and practice.
But most of all: have fun.


All times are GMT -5. The time now is 04:24 PM.