All Apps and Add-ons

Splunk Add-on for ServiceNow: Why am I getting "KeyError: 'elements' - Exception: Failed to get service_now.conf" during setup?

grossb
Explorer

When i installed/configured the service now add-on, i got the "KeyError: 'elements'" when trying the GUI setup. So i went to the config files and configured there. Not i'm getting the errors in the log:

2015-07-22 16:50:40,738 INFO 140299624580864 - Start Snow TA
2015-07-22 16:50:40,771 ERROR 140299624580864 - Failed to get service_now.conf
2015-07-22 16:50:40,771 ERROR 140299624580864 - Failed to setup config for Snow TA: Failed to get service_now.conf
2015-07-22 16:50:40,771 ERROR 140299624580864 - Traceback (most recent call last):
  File "/opt/splunk/splunk/etc/apps/Splunk_TA_snow/bin/snow.py", line 84, in run
    snow_conf = snow_config.SnowConfig()
  File "/opt/splunk/splunk/etc/apps/Splunk_TA_snow/bin/snow_config.py", line 38, in __init__
    default_configs = self._get_default_configs()
  File "/opt/splunk/splunk/etc/apps/Splunk_TA_snow/bin/snow_config.py", line 78, in _get_default_configs
    raise Exception("Failed to get service_now.conf")
Exception: Failed to get service_now.conf

I did notice the known issue noted in the release notes (http://docs.splunk.com/Documentation/AddOns/released/ServiceNow/Releasenotes).

"Add-on fails with KeyError: 'elements' when connecting through a proxy set up in splunk-launch.conf. Workaround: Do not use global proxy settings with add-ons. Instead, configure a proxy using the add-on's built-in proxy configuration support."

But we do not have this set up in splunk-launch.conf so i'm not sure where else to look.

Any ideas?

0 Karma

jcoates_splunk
Splunk Employee
Splunk Employee

hey, this stuff can get complex, so here goes:

  1. Splunk is a web app, so you've got to have clear shots from your browser to and from the splunk server for anything to work.
  2. Additionally, the splunk server is running code that needs to talk to itself, and it's not uncommon for name resolution and proxy settings to cause that traffic to effectively act like it's going out to the network instead of just loopback.
  3. you can configure proxies in unix environment variables, in splunk-launch.conf, or in the configuration files of many add-ons... not to mention the popular transparent proxy option in which firewalls just route your traffic to a proxy. If these conflict or override each other, everyone gets confused.
0 Karma

grossb
Explorer

So we do have an explicit proxy. I tried both the system proxy settings as well as the SN app specific proxy stanza within the 'service_now.conf' with same results:

Exception: Failed to get service_now.conf

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...