Knowledge Management

How to write a validation expression for a macro?

rajgowd1
Communicator

Hi,

i have defined macro like services($searchterm$,$mng$,$fng$)

how can we write validation expression? if we don't mention $searchterm$ while searching, it displays with validation message.

1 Solution

sundareshr
Legend

Try this

Validation expression: isnotnull($searchterm$)
Validation error message: The search term value that you have provided is not valid. Enter a valid search term.

View solution in original post

0 Karma

sundareshr
Legend

Try this

Validation expression: isnotnull($searchterm$)
Validation error message: The search term value that you have provided is not valid. Enter a valid search term.
0 Karma

duartet
Path Finder

It's not working for me. Maybe something changed since 2016?

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Synthetic Monitoring - Resolved Incident on Detector Alerts

We’ve discovered a bug that affected the auto-clear of Synthetic Detectors in the Splunk Synthetic Monitoring ...

Video | Tom’s Smartness Journey Continues

Remember Splunk Community member Tom Kopchak? If you caught the first episode of our Smartness interview ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud? Learn how unique features like ...