Splunk Search

How to show Error inputs gracefully

Saikat001
Explorer

How to display the error input or value errors in a pop up? I am trying to build a custom command and want to show errors raised or returned in a pop up or modal.

For example: In the inputlookup , if no csv name is provided, it will return below error. How to show it in form of an pop up or modal? Also how to remove the First line and display only the 2nd and 3rd line?

@splunk  @niketnilay

Saikat001_1-1661480579728.png

 

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@Saikat001 

You can achieve this with Custom Search Bar using JavaScript Extensions. 

You can find the code for Custom Search Bar in Niket's answer in the below link.

https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-app-banner-css-when-open-sea...

And find the code for Custom Modal in my answer in the below link.

https://community.splunk.com/t5/Dashboards-Visualizations/Modal-Drill-down/m-p/555986

I hope this will help you.

 

Thanks
KV


If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.

 

0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...