Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

XML search form - Allow wildcard only for specific dropdown input

$
0
0
Below search form - prevent the user from entering "wildcard " inputs in the text field. - if user entera any wildcard or blank value in text field - it will show error message. Now, in this form I wanted to allow the user to do wildcard searches when the dropdown input value is only "audit"
falseauditsplunkdcase(len($value$)>0 AND NOT like($value$,"%*%"),$value$)
Log Level does not accept asterix (*)!!!
Log Level Volumeindex="_internal" sourcetype=$dropdown_input$ log_level="$tokLogLevel$" | stats count by log_level | appendpipe [| makeresults | eval log_level="$tokLogLevel$",count=0 | fields - _time] | dedup log_level-24h@hnow1

Viewing all articles
Browse latest Browse all 47296

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>