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 Discussions
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
  • Discussions
  • Parsing Shell Script for nwsdk_csv.py
  • Options
    • Subscribe to RSS Feed
    • Mark Topic as New
    • Mark Topic as Read
    • Float this Topic for Current User
    • Bookmark
    • Subscribe
    • Mute
    • Printer Friendly Page

Parsing Shell Script for nwsdk_csv.py

GuyBruneau
GuyBruneau Frequent Contributor
Frequent Contributor
Options
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

‎2017-08-31 08:33 PM

Rui Ataide posted a useful Python script to query a Broker or Concentrator metadata from the command line (nwsdk_csv.py latest version 2016). In order to make it easier to use this Python script, I wrote a shell script to use as a simple interface that interact with it. 

 

Before you can run netwitness_sdk.sh, you need to download nwsdk_csv.py from nwsdk_csv.py and copy it it on a Linux workstation (i.e. /usr/loca/bin) and make it executable (chmod 755 nwsdk_csv.py)

 

Next, edit the netwitness_sdk.sh script and enter your default Broker or Concentrator you want to point the script to and change the IP address of the system and the account you want to use to query the metadata and save the changes.

 

configuration.PNG

 

The shell script has 5 options. The shell script ask 3 questions before it queries NetWitness’ metadata:

 

- What you want to query (i.e. ip.src=192.168.1.254 && service=80)

- Time range (i.e. time='2017-2-20 00:00:00'-'2017-2-21 00:00:00')

- Meta output you want in the output (ip.src,service --top=10)

 

Note: Output is save to a CSV file in a comma delimited format

 

ip.src,service,count

10.208.165.109,0,6

10.208.28.54,0,4

192.168.42.11,0,10

10.68.79.182,0,3

 

The script also provides the ability to provide a list (one item per line) that it will parse in succession and save the output in CSV file with a file name supplied in the list.

 

netwitness_sdk.PNG

 

The last 2 options (service 53 and 80) the meta output is already set in the script but you can modify that to whatever output format you want.

 

[1] https://community.rsa.com/message/883219

  • Broker
  • Community Thread
  • Concentrator
  • Discussion
  • Forum Thread
  • meta
  • meta query
  • NetWitness
  • netwitness_sdk.sh
  • NW
  • NWP
  • nwsdk_csv.py
  • RSA NetWitness
  • RSA NetWitness Platform
Preview file
4 KB
0 Likes
Share
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
0 REPLIES 0
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.