Archive
Highlighted

Web Intelligence error

Explorer

I'm tryed the app Web Intelligence, but saving the Setup parameters I obtain the below error:

"An error occurred while rendering the page template. See web_service.log for more details"

Follow error on the web_service.log file:

  File "/opt/splunk/etc/apps/webintelligence/appserver/templates/setup.html", line 27, in render_gen_text seq = [token.split('=')[1] for token in form_content.search.split(' OR ')]
  IndexError: list index out of range

Any suggestions? Thanks a lot.

0 Karma
Highlighted

Re: Web Intelligence error

Splunk Employee
Splunk Employee

This bug happens when there is a malformed entry in webintelligence/local/eventtypes.conf. It has been fixed in the next version of web intelligence that will be fixed at some point in the future.

As a temporary workaround to prevent the traceback, you can delete the webintelligence/local/eventtypes.conf, then edit webintelligence/appserver/templates/setup.html starting on line 25 as follows:

try:
    from sets import Set
    seq = [token.split('=')[1] for token in form_content.search.split(' OR ')]
    set = Set(seq)
    tokenList = list(set)
    tokenList.sort()
    tokenLen = len(tokenList)
except:
    tokenList = []
    tokenLen = 0

Can you tell me what was in you local/eventtypes.conf?

0 Karma