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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...