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!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...