All Apps and Add-ons

Splunk for Netwitness Query

pjaramillo
Engager

This is the error returned from running the nwsdk_query.py script

2014-Mar-05 11:27:43 - ERROR: While
trying to process sessions.
Reason="local variable 'group'
referenced before assignment"
Class="
'exceptions.UnboundLocalError'>"
2014-Mar-05 11:27:43 Traceback (most
recent call last): File
"./nwsdk_query.py", line 357, in

(done, last_completed_meta,first_run_last_id)
= get_stats(opener, a_url) File "./nwsdk_query.py", line 223, in
get_stats
sys.stderr.write(time.strftime("%Y-%b-%d
%H:%M:%S",
time.localtime(time.time())) + ' -
ERROR: While trying to process
sessions ( sessionid=' + str(group) +
' ) Reason="' + str(e) + '" Class="' +
str(c) + '" \r\n') UnboundLocalError:
local variable 'group' referenced
before assignment

0 Karma

rataide
Path Finder

Sorry for the delay getting back to you! I've only just seen this!

Can you please post your query from the configuration file?

"group" is normally assigned very early and the only reason of it not to be so is if there is no data returned from the NW device.

Thank you,

Rui

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...