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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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