Getting Data In

Exclude records from the final result

Anand_Raman
Loves-to-Learn Lots

 

Hi, I have a situation where I have to exclude certain records from the final result only. I don't want to include in the initial search criteria because it excludes the whole event. For example  a single event may contain many tables and if I exclude a certain table  in my initial search I'm getting a wrong count of other tables . I just want those table removed from my final results.

Thanks

0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

usually this can do wit search and/or where commands. If you give some example data and full SPL query, we could help you with it.

r. Ismo

0 Karma

Anand_Raman
Loves-to-Learn Lots

Thanks Soutamo for the reply. The below is my main search 

"index="production_index" host="production" source="projects/production/logs/cloudaudit.googleapis.com%2Fdata_access" "protoPayload.authenticationInfo.principalEmail" = "*@.com"
protoPayload.serviceData.jobGetQueryResultsResponse.job.jobStatistics.referencedTables{}.datasetId!="_*"
protoPayload.serviceData.jobGetQueryResultsResponse.job.jobStatistics.createTime=*"

I'm parsing GCP logs to find number of users per dataset. One SQL may contain reference to multiple datasets and when I exclude the control tables in my search the whole event is being excluded.

Anand_Raman_0-1611950724715.png

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!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...