All Apps and Add-ons

NameError: global name 'indexing_time' is not defined

tommyddau1
New Member

Hello,

I've installed Splunkit 3.2 to run some tests. Indexing works great but searching failed with the following error. Any help is much appreciated.

[splunk@bigdata5 splunkit-server]$ python bin/searchtest.py
Preparing logger
[2014-09-18 08:11:48,415] ServerMain: Preparing server and test driver object
[2014-09-18 08:11:48,416] TestDriver: Preparing Pyro test driver object
[2014-09-18 08:11:48,416] TestDriver: Preparing results logger with CSV output enabled
[2014-09-18 08:11:48,416] TestDriver: CSV fields: ['timestamp', 'unix_timestamp', 'test_name', 'test_class', 'host', 'thread', 'id', 'agent_run', 'client_run', 'elapsed', 'run_duration', 'username', 'event_count', 'result_count', 'time_to_first_event', 'time_to_search']
[2014-09-18 08:11:48,416] ServerMain: Starting pyro server thread
Nameserver running on 10.18.127.95:8080
Pyro daemon running on 10.18.127.95:8081
[2014-09-18 08:11:48,421] ServerMain: Starting watchdog thread
[2014-09-18 08:11:48,422] ServerMain: Starting in automatic mode
[2014-09-18 08:11:48,422] ServerMain: Waiting for 1 agent(s) to connect
[2014-09-18 08:11:49,237] TestDriver: User admin connected with id kHD0A from host bigdata4.sedemo.lab
[2014-09-18 08:11:49,237] ServerMain: 1 agent(s) connected!
[2014-09-18 08:11:49,238] SearchTestSetup: Reading scheduled_searches.txt for scheduled search strings, frequencies, and start/end times
Traceback (most recent call last):
File "bin/searchtest.py", line 626, in
main()
File "bin/searchtest.py", line 572, in main
splunkit_server = SplunkItServer(properties=properties, logger=logger)
File "bin/searchtest.py", line 149, in init
'splunkit_index_stats_idxtest' : 'index=_internal per_index_thruput series=\"splunkit_idxtest\" | stats sum(kb) AS \"sum_kb\" avg(eps) AS \"Average EPS\"| eval \"Average KBPS\"=sum_kb/%f | table \"Average KBPS\" ,\"Average EPS\"'%indexing_time,
NameError: global name 'indexing_time' is not defined

Thanks,

TD

Tags (3)
0 Karma

jlin
Splunk Employee
Splunk Employee

From the error it seems like there was something wrong with indexing test; either the indexing test result was not generated correctly/not there, or corrupted?

Check if bin/indexRecord.log is correctly written.

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 ...