Dashboards & Visualizations

Why is Dashboard dropdown filter search query and associated event panel query blocking some results?

SCB588
Engager

I have an event panel with 5 dropdown boxes as shown to be able to filter the base results based of 5 categories

SCB588_0-1693190403055.png

 

  • by app name - there are two Apps BPE and BPO
  • by sts eg 400's or 500's response codes etc
  • by  mtd eg API method POST PATCH GET etc
  • by booking ref
  • by cal eg Calling API

This is the event search I created to return the base results 

app=BP* sts=* | table at,req.bookingReference,app,mtd,cid,sts,dur,rsc,cal,req.offerOptionCode | rename req.bookingReference as bookingReference, req.offerOptionCode as offerOptionCode| search app=* AND mtd=* AND sts=* AND bookingReference=* AND cal=* | sort by at asc

When i remove the "search app=* AND mtd=* AND sts=* AND bookingReference=* AND cal=*" from the query, I then seem to get all the expected results which include POST PATCH and GET items, but with it included, I only get POST method results and not the GET and PATCH items.

i suspect the AND statements are the culprit...I tried OR but then the filters don't work and won't filter the base results.

Appreciate any guidance

Thanks

Labels (1)
Tags (1)
0 Karma
1 Solution

manjunathmeti
Champion

You must have field values in all these fields app, sts, bookingReference and cal for the events with field mtd contains PATCH/GET values

View solution in original post

0 Karma

manjunathmeti
Champion

Try putting * in quotes.

app=BP* sts=* | table at,req.bookingReference,app,mtd,cid,sts,dur,rsc,cal,req.offerOptionCode | rename req.bookingReference as bookingReference, req.offerOptionCode as offerOptionCode| search app="*" mtd="*" sts="*" bookingReference="*" cal="*" | sort by at asc
0 Karma

SCB588
Engager

Hello and thanks @manjunathmeti but still not working. I enclosed the * in quotes and removed the AND 
 
app=BP* | table at,req.bookingReference,app,mtd,cid,sts,dur,rsc,cal,req.offerOptionCode|rename req.bookingReference as bookingReference, req.offerOptionCode as offerOptionCode | search app="*" mtd="*" sts="*" bookingReference="*" cal="*"| sort by at asc

Results still don't return API method PATCH and GET unless i remove the search statement

0 Karma

manjunathmeti
Champion

You must have field values in all these fields app, sts, bookingReference and cal for the events with field mtd contains PATCH/GET values

0 Karma

SCB588
Engager

Oh ok I did not realise that @manjunathmeti 

I was trying to present certain values in a columnised Table,  but some of those values won't be populated for all API methods...which means then I may have to have separate panels in the dashboard for the particular API Method, I guess ☹️

Thanks for your guidance

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...