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!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...