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

 

Labels (1)
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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...