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!

New Year, New Changes for Splunk Certifications

As we embrace a new year, we’re making a small but important update to the Splunk Certification ...

[Puzzles] Solve, Learn, Repeat: Unmerging HTML Tables

[Puzzles] Solve, Learn, Repeat: Unmerging HTML TablesFor a previous puzzle, I needed some sample data, and ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...