How to list all event sources through SSH
3 years ago
Originally Published: 2015-04-01
Article Number
000067560
Applies To
RSA Product Set: Security Analytics
RSA Product/Service Type: SA Security Analytics Server
RSA Version/Condition: 10.3, 10.4
Platform: Linux
 
Issue
How to list current event sources integrated with Security Analytics?
Resolution

1. Login to Log Decoder device through SSH
2. Run below command by replacing string "password" with actual password

NwConsole -c login localhost:50002 admin password -c decoder logStats | sed "s/ device=/,/g;s/ /,/g;s/forwarder/,/g;s/=ssafismaa01.fnfis.com/,/g;s/source=/,/g;s/count=/,/g;s/time=/,/g;s/,,,,/,/g;s/,,/,/g;s/\[,//g;s/,\]//g" | sed '1d;2d;3d;4d;5d;6d;7d' > /tmp/SA_Device_Status.csv

3. Navigate to tmp folder on same server to find the output file (SA_Device_Status.csv)

cd /tmp

4. Contents of file should appear in below format.

device_type,forwarder,event_source_IP,Date_of_creation
Example:
mcafeevirusscan,=SAVLC1,10.10.10.10,8,"2014-Sep-24,05:20:12"