Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

nsm_sensor_ps-restart should rotate current log file to TIMESTAMP #181

Closed
GoogleCodeExporter opened this issue Mar 24, 2015 · 3 comments
Closed

Comments

@GoogleCodeExporter
Copy link

and delete the oldest archived log file if more than some defined number (10)

Original issue reported on code.google.com by doug.bu...@gmail.com on 4 Jan 2012 at 2:49

@GoogleCodeExporter
Copy link
Author

process_restart and process_restart_if_stale both look like this now:

        process_stop "$APP" "$PID_FILE" "$APP_DESC"
        # Rotate the log file and keep a maximum of 10  
        mv "$LOG_FILE" "$LOG_FILE".`date +%Y%m%d%H%M%S`
        [ `ls "$LOG_FILE".* |wc -l` -gt 10 ] && ls "$LOG_FILE".* |head -1 |xargs rm -f
        process_start "$APP" "$APP_OPTIONS" "$PID_FILE" "$LOG_FILE" "$APP_DESC"

Original comment by doug.bu...@gmail.com on 6 Jan 2012 at 12:26

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Packaged:
/usr/local/lib/ruby/gems/1.9.1/gems/fpm-0.3.11/bin/fpm -s dir -t deb -n 
securityonion-nsmnow-admin-scripts -v 20120106 /etc/init.d/nsm* 
/usr/share/nsmnow/ /usr/local/sbin/nsm* /usr/local/lib/nsmnow/ 
/etc/cron.d/sensor-* /etc/cron.d/nsm* /etc/init/securityonion.conf

Original comment by doug.bu...@gmail.com on 6 Jan 2012 at 3:09

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Published:
http://securityonion.blogspot.com/2012/01/security-onion-20120106-now-available.
html

Original comment by doug.bu...@gmail.com on 6 Jan 2012 at 3:10

  • Changed state: Verified
  • Added labels: ****
  • Removed labels: ****

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant