Splunk Search

How can I use * in eval if statement?

ashidhingra
Path Finder

| eval RouteLatency = if (Name="ABC" AND HTTP="*https://.net.*.com*" , bckLatency ,RouteLatency )

Labels (3)
0 Karma

JacekF
Path Finder

use "like" function

| eval RouteLatency = if (Name="ABC" AND like(HTTP,"%https://.net.%.com%") , bckLatency ,RouteLatency )

 

0 Karma

PickleRick
SplunkTrust
SplunkTrust

Either use match() to match with regex or searchmatch() to match "searchlike".

0 Karma
Get Updates on the Splunk Community!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...