Re: [Snort-users] -l parameter

This is a discussion on Re: [Snort-users] -l parameter within the Snort forums, part of the System Security and Security Related category; I'm executing these commands in > crontab: > > 3 16 * * * find /var/log/snort -atime +7 -exec rm -...


Go Back   Usenet Forums > System Security and Security Related > Snort

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-10-2003
twig les
 
Posts: n/a
Default Re: [Snort-users] -l parameter

I'm executing these commands in
> crontab:
>
> 3 16 * * * find /var/log/snort -atime +7 -exec rm -rf {} \;
> 4 16 * * * mkdir /var/log/snort
>
> The mkdir was necessary because "rm -rf" removes the snort
> directory. Is
> it possible to avoid this? Thanks again for the advice from
> both of you.
>


Well you could erase things *inside* the directory, which it
looks like that command does. I'd have to tinker with it, no
time. But as an alternative have you tried newsyslog (man 8
newsyslog)? If you don't get into the ISO 8601 time formatting
garbage it should take you about 5 minutes to set up log
rotation. If you get into the ISO 8601 hooha it should take 10.

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Snort-users mailing list
Snort-users@lists.sourceforge.net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/...fo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.p...st=snort-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:17 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0