Dashboards & Visualizations

[RESOLVED] Embedding Splunk 6 app in IFRAME, almost

ww9rivers
Communicator

I have a web app that embed dashboards from Splunk, initially from one search head on the local host. I am expanding that to multiple search heads. I've made that working with 2 search heads running Splunk 5, but with one running 6.1.1 I am seeing error(s) in JavaScript.

By the way, I have read this thread about the SAMEORIGIN setting in Splunk 6, which I have already dealt with.

Proxying to search heads are done using Apache 2. Please let me know more details is needed on that.

The error message I see (with the help of Firebug) is:

TypeError: i18n._ is not a function
https://*my-proxy-server*:4443/en-US/static/@207789/js/contrib/lodash.js
Line 4

Looking into the JavaScript in Firebug, this is where the error occurred (line 4):

define(['splunk.i18n', 'lodash'],function(i18n, _){
    _.mixin({
        t: function(string) {
            return i18n._(string);
        }
    });
    return _;
});

Thanks for any help!

0 Karma
1 Solution

ww9rivers
Communicator

As things would often turn out, that was related to something in my old Firefox profile: I re-started Firefox with the "-p" option and a newly created profile. Then everything works as expected. I wonder if this may have something to do with my multiple open tabs/windows in Firefox and the JavaScript in this window got polluted somehow.

Anyway, I want to mark this question as resolved.

View solution in original post

0 Karma

ww9rivers
Communicator

As things would often turn out, that was related to something in my old Firefox profile: I re-started Firefox with the "-p" option and a newly created profile. Then everything works as expected. I wonder if this may have something to do with my multiple open tabs/windows in Firefox and the JavaScript in this window got polluted somehow.

Anyway, I want to mark this question as resolved.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...