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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...