Dashboards & Visualizations

Error while creating custom view

keerthana_k
Communicator

I am currently using Splunk version 4.3.1. When I tried creating a custom module for my specific requirement, I am getting the following error when I navigate to the view:

"Splunk cannot find the "dashboardxxxxx" view."

When I checked the web_service.log file the following error was shown:

2013-01-17 09:36:25,201 ERROR [50f7c61913d5423d0] memoizedviews:116 - Error loading view "dashboardxxxxx"
2013-01-17 09:36:25,201 ERROR [50f7c61913d5423d0] memoizedviews:117 - global name 'lib' is not defined
Traceback (most recent call last):
File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/memoizedviews.py", line 109, in getParsedView
parsed_view = self._generateViewRoster(viewid, native_view, viewobj.getFullPath())
File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/memoizedviews.py", line 200, in _generateViewRoster
for item in self._moduleGenerator(module, panelName=viewName, usageCounter=localUsageCounter):
File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/memoizedviews.py", line 375, in _moduleGenerator
for x in childOutput: yield x
File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/memoizedviews.py", line 375, in _moduleGenerator
for x in childOutput: yield x
File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/memoizedviews.py", line 319, in _moduleGenerator
lib.message.send_client_message(
NameError: global name 'lib' is not defined

Please help on how to resolve this issue.

Tags (2)
0 Karma
1 Solution

keerthana_k
Communicator

There was an issue in the conf file of my custom module to define the parameters. Once the issue was fixed, the dashboard was loaded correctly.

View solution in original post

0 Karma

keerthana_k
Communicator

There was an issue in the conf file of my custom module to define the parameters. Once the issue was fixed, the dashboard was loaded correctly.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...