Splunk Enterprise Security

Excessive DNS Queries exclude by tag

jarkkokinnunen
New Member

Hi,

I tried to find out how to exclude tags from tstats search. My search is:
| tstats summariesonly=true allow_old_summaries=true count from datamodel="Network_Resolution"."DNS" where "DNS.message_type"="QUERY" by "DNS.src" | rename "DNS.src" as "src" | where 'count'>100

I want to make custom tag and exclude it from the search. Tag name could be "DNS" from src address.

I can exclude single ip address with this query but i would like to exclude src ip addressess what have tag "DNS"
| tstats summariesonly=true allow_old_summaries=true count from datamodel="Network_Resolution"."DNS" where DNS.src!=8.8.8.8 AND "DNS.message_type"="QUERY" by "DNS.src" | rename "DNS.src" as "src" | where 'count'>100

How should I change the query?

I have already tried to exclude:
"tag::src"!=DNS
"tag::DNS.src"!=DNS

With no results.

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


Introducing Unified TDIR with the New Enterprise Security 8.2

Read the blog

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