Security

Launch multiple views at login

Ant1D
Motivator

Hey,

When you log in to splunk, the default view that you have specified via default.xml will be displayed on screen.

Is it possible to have more than one view launched (in separate windows) straight after completing the login?

Thanks in advance for your help.

Tags (4)

araitz
Splunk Employee
Splunk Employee

You would need to do some hacking, most likely via /appserver/static/application.js in the app in question.

You could use several methods, but the easiest might be to use $(document).ready():

$(document).ready( function() {
    window.open(Splunk.util.make_url('app', Splunk.util.getCurrentApp(), 'the_other_view'));
});

Perhaps I should ask why you want to do this?

Ant1D
Motivator

Hey Nick, if it would cause unwanted side-effects, then I will probably not experiment with it but it is definitely worth a thought in terms of R & D/improving the UI.

0 Karma

Ant1D
Motivator

Thanks araitz. It's not for definite. It's just an idea. I have a (data intensive) view in my instance that takes a while to load up. I thought about making this my default view. While it's loading, users could have another view to look at while they wait. (I know that users could manually open up different views but I was thinking of users getting all the views that they need to see opened as soon as they log in instead of having to open them all manually one at a time. I think this could be a cool enhancement although it may affect the speed of Splunk. Sorry to go off on a bit of a tangent.

0 Karma

sideview
SplunkTrust
SplunkTrust

Note: You definitely want to wrap that at least in if (Splunk.util.getCurrentView() == "the default view"), and even then it'll have unwanted effects when you go back to that view later. 😃

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!

Where Innovation Takes Flight: The Splunk4Aviation Flight Sim Lands at .conf26

If you hear someone at .conf26 shouting "gear down, GEAR DOWN" across the show floor, you have found us.  The ...

Turn Cisco Telemetry Into Action with Cisco Data Fabric, powered by the Splunk ...

The surge in machine data is already hitting enterprise budgets, and the agentic era will only intensify it. ...

Persistent Queue at TcpOut — One of Splunk's Most Practical Features

Splunk introduced persistent queueing at the tcpout layer as one of the most practical resilience features in ...