Dashboards & Visualizations

Helper function for getting a parameter from the URL via JS?

LukeMurphey
Champion

In JavaScript, is there a helper function for getting a parameter from the URL?

Tags (1)
0 Karma
1 Solution

LukeMurphey
Champion

Yes there is. It's Splunk.util.getParameter(). For example, the following would get the "host" URL parameter:

Splunk.util.getParameter("host")

View solution in original post

0 Karma

LukeMurphey
Champion

Yes there is. It's Splunk.util.getParameter(). For example, the following would get the "host" URL parameter:

Splunk.util.getParameter("host")
0 Karma
Get Updates on the Splunk Community!

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...