Google Splunk URLs don’t have a built-in parameter to scroll down on page load, but you can try a few approaches depending on your dashboard setup:
1. Use URL hash (anchor) if your dashboard has anchors
If your dashboard HTML or panels have anchor IDs, you can append #panelID to the URL to jump to that section:
https://your-splunk-instance/app/your-app/your-dashboard#panelID
Replace panelID with the actual anchor or element ID in your dashboard.
2. Use URL parameters to filter or focus on a specific panel
Splunk dashboards support URL parameters like form.<field>=<value> to set tokens or filters, but no native scroll.
Example:
https://your-splunk-instance/app/your-app/your-dashboard?form.fieldname=value
3. Custom solution: add JavaScript to your dashboard
If you control the dashboard code (e.g., Simple XML with custom JS), you can add JavaScript to scroll on load:
$(document).ready(function() {
// Scroll to element with id 'panelID'
var panel = document.getElementById('panelID');
if(panel) {
panel.scrollIntoView();
}
});
Then your URL can include #panelID to jump there.
4. Example URL with dashboard and anchor
https://your-splunk-instance/app/your-app/your-dashboard#myPanel
How to add this in your Splunk alert payload (SPL)
Just append the anchor or parameters to your URL string:
| eval payload="{\"cards\":[{\"header\":{\"title\":\"Alert from Splunk\"},\"sections\":[{\"widgets\":[{\"textParagraph\":{\"text\":\"An alert has been triggered. Click below to investigate.\"}},{\"buttons\":[{\"textButton\":{\"text\":\"Odbieram\",\"onClick\":{\"openLink\":{\"url\":\"https://your-splunk-instance/app/your-app/your-dashboard#myPanel\"}}}},{\"textButton\":{\"text\":\"Chcę skomentować\",\"onClick\":{\"openLink\":{\"url\":\"https://your-splunk-instance/app/your-app/your-dashboard#myPanel\"}}}}]}]}]}]}"
Summary
- No native scroll param in Splunk URLs.
- Use anchors (
#id) if your dashboard supports it.
- Or add custom JS to scroll on load.
- Append anchors or query params to your URL in the alert payload.
If you want, I can help you craft a full example with your exact dashboard URL!