Splunk Search

display result with specific condition matched

cykuan
New Member

Hi All,

If I want to display the result with contain the below number(+61011 or +61012) the first 5 digits numbers.

25/04/2014 00:00:00,CALL_SUCCESSFUL,VOICE,+6101156789,tel:+6101256789,25/04/2014 1:04:08,25/04/2014 2:00:00,0,GS-client/SMH3.0 gsh/dd A/1.1.1 COM/4.5.6,GS-client/SMH3.0 gsh/dd A/1.1.1 COM/4.5.6

I have tried to use this command but no display show out.
(CALL_STOPPED OR CALL_SUCCESSFUL,VOICE) AND (+61011 OR +61012 OR +61013) earliest=04/22/2014:00:00:00

Tags (1)
0 Karma
1 Solution

MichaelPriest
Communicator

I think you need to include some speech marks around some or you conditions, so something like:

("CALL_STOPPED" OR "CALL_SUCCESSFUL,VOICE") AND ("+61011" OR "+61012" OR "+61013") earliest=04/22/2014:00:00:00

See this similar question:
http://answers.splunk.com/answers/120097/query-on-using-and-or.html

View solution in original post

0 Karma

MichaelPriest
Communicator

I think you need to include some speech marks around some or you conditions, so something like:

("CALL_STOPPED" OR "CALL_SUCCESSFUL,VOICE") AND ("+61011" OR "+61012" OR "+61013") earliest=04/22/2014:00:00:00

See this similar question:
http://answers.splunk.com/answers/120097/query-on-using-and-or.html

0 Karma

cykuan
New Member

Hi Michael,

I have tried your method, but it didn't work for me. If I input the search with the full digits(e.g.+6101156789), then the result will display. However, I only want to display the result with only match the first 5 digits.

0 Karma

MichaelPriest
Communicator

Ok, then use then wildcard(*), so for example:

("*+61011*") will return all results that contain +61011

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