This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Accept
Reject

NetWitness Community

  • Home
  • Products
    • NetWitness Platform
      • Advisories
      • Documentation
        • Platform Documentation
        • Known Issues
        • Security Fixes
        • Hardware Documentation
        • Threat Content
        • Unified Data Model
        • Videos
      • Downloads
      • Integrations
      • Knowledge Base
    • NetWitness Cloud SIEM
      • Advisories
      • Documentation
      • Knowledge Base
    • NetWitness Detect AI
      • Advisories
      • Documentation
      • Knowledge Base
    • NetWitness Investigator
    • NetWitness Orchestrator
      • Advisories
      • Documentation
      • Knowledge Base
      • Legacy NetWitness Orchestrator
        • Advisories
        • Documentation
  • Community
    • Blog
    • Discussions
    • Events
    • Idea Exchange
  • Support
    • Case Portal
      • Create New Case
      • View My Cases
      • View My Team's Cases
    • Community Support
      • Getting Started
      • News & Announcements
      • Community Support Forum
      • Community Support Articles
    • Product Life Cycle
    • Support Information
    • General Security Advisories
  • Training
    • Blog
    • Certification Program
    • Course Catalog
    • New Product Readiness
    • On-Demand Subscriptions
    • Student Resources
    • Upcoming Events
  • Technology Partners
  • Trust Center
Sign InRegister Now
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Search instead for 
Did you mean: 
NetWitness Knowledge Base Archive
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Search instead for 
Did you mean: 
Announcement Banner

Users are unable to open Netwitness Support Cases via email. Please open support cases via portal or by phone

View Details
  • NetWitness Community
  • NetWitness Knowledge Base Archive
  • How to Remove Old Data from a Warehouse in RSA Security Analytics 10.x
  • Options
    • Subscribe to RSS Feed
    • Bookmark
    • Subscribe
    • Email to a Friend
    • Printer Friendly Page
    • Report Inappropriate Content

How to Remove Old Data from a Warehouse in RSA Security Analytics 10.x

Article Number

000033977

Applies To

RSA Product Set: Security Analytics
RSA Product/Service Type: SA Core Appliance
RSA Version/Condition: 10.X
Platform: CentOS
 

Issue

If your warehouse becomes full, then many notifications will be generated such as: 
  • Notifications that a warehouse connector stream has stopped processing.
  • Notifications that the warehouse is full or becoming full.
These can adversely affect performance, so it is important that space on the warehouse is managed so that it does not become completely filled up.

Resolution

In order to remove old files from the warehouse create a script on a warehouse connector that will run on an hourly basis as a cron job.

Here the mount point of the NFS Share on the warehouse in the example below is /mnt/saw/lonsaw
Your mount point will be different but but will contain the rsasoc/v1/... directory structure.


The contents of the script is as follows:

find /mnt/saw/lonsaw/rsasoc/v1/logs/data* -mtime +365 -exec rm {} \;
find /mnt/saw/lonsaw/rsasoc/v1/sessions/data* -mtime +365 -exec rm {} \;
find /mnt/saw/lonsaw/rsasoc/v1/logs/data -type d -empty -delete
find /mnt/saw/lonsaw/rsasoc/v1/sessions/data -type d -empty -delete
 
  1. Create a file with the contents of the script as above (eg call it /root/saw-cleanup.sh)
  2. Modify the retention time to suit your environment. For example the script above deletes files that are older than 365 days and removes any empty directories.
  3. Make sure that this file is executable (chmod +x saw-cleanup.sh)
  4. Run this file as a cronjob. To do this add the line below to the /etc/crontab file on the warehouse connector appliance.

13 * * * * root run-parts /root/saw-cleanup.sh > /dev/null 2>&1



This will run the script every hour at 13 minutes past the hour and delete any files older than 365 days.
Tags (33)
  • 10.4
  • 10.4.x
  • 10.5
  • 10.5.x
  • 10.6
  • 10.6.x
  • 10.x
  • Customer Support Article
  • Data Warehouse
  • KB Article
  • Knowledge Article
  • Knowledge Base
  • NetWitness
  • NetWitness Platform
  • NW
  • RSA NetWitness
  • RSA NetWitness Platform
  • RSA Security Analytics
  • SAW
  • Security Analytics
  • Security Analytics Warehouse
  • SIEM
  • Version 10
  • Version 10.4
  • Version 10.4.x
  • Version 10.5
  • Version 10.5.x
  • Version 10.6
  • Version 10.6.x
  • Version 10.x
  • Warehouse
  • Warehouse Connector
  • WHC
0 Likes
Was this article helpful? Yes No
Share
No ratings

In this article

Version history
Last update:
‎2021-04-23 11:04 AM
Updated by:
Administrator RSA-KB-Sync Administrator

Related Content

Powered by Khoros
  • Blog
  • Events
  • Discussions
  • Idea Exchange
  • Knowledge Base
  • Case Portal
  • Community Support
  • Product Life Cycle
  • Support Information
  • About the Community
  • Terms & Conditions
  • Privacy Statement
  • Acceptable Use Policy
  • Employee Login
© 2022 RSA Security LLC or its affiliates. All rights reserved.