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!

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 ...