View threat logs

Before you begin

Verify that the following have been completed before you view DNS threat logs:

Threat logs are written to Cloud Logging and can result in additionalstorage costs. SeeUse logging and monitoring: PricingorPricing for Google Cloud Observability: Cloud Logging.

Permissions required for this task

To perform this task, you must have been granted the following permissionsor the following IAM roles.

Permissions

  • resourcemanager.projects.get
  • resourcemanager.projects.list
  • networksecurity.dnsThreatDetectors.get
  • networksecurity.dnsThreatDetectors.list

Roles

  • roles/networksecurity.dnsThreatDetectorViewer
  • roles/logging.viewer

View threat logs

You can view logs in the Google Cloud console.

Each log entry includes details to identify the corresponding DNS query andthreat.

Console

  1. In the Google Cloud console, go to theLogs Explorer page.

    Go to Logs Explorer

  2. Filter the logs fornetworksecurity.googleapis.com/DnsThreatDetector.

Threat log record fields

Every threat log has the following fields.

NameTypeDescription
detectionTimestringTime when the threat is detected in UTC. The timestamp is in ISO 8601 format.
dnsQueryDnsLogCloud DNS Log format.
partnerIdstringUnique partner identifier.
threatInfothreatInfoThe details of threat detected.

Threat info field

The following table describes the format of thethreatInfo field.

NameTypeDescription
threatIDstringUnique threat identifier.
threatstringThe name of the threat detected.
threatDescriptionstringA detailed description of the threat detected.
categorystringThe subtype of the threat detected.
typestringThe type of the threat detected. For example, DNS_Tunnel, DGA (Domain Generation Algorithms), or C2 (Command and Control).
severitystring

The severity, (High, Medium, Low, or Info), associated with the threat detected.

For more information, see Infoblox's Severity Level Definition.

confidencestring

Confidence of the threat prediction (high, medium, low).

For more information, see Infoblox's Confidence Level Definition.

threatFeedstringThreat feed that triggered this threat alert.
indicatorTypestringThe type of indicator that triggered this threat alert. For example,URL, IP, Hash, or Host.
threatIndicatorstringThe threat indicator that triggered this alert.

DNS Query field

The following table describes the format of theDnsQuery field.

NameTypeDescription
projectNumberstringSource project number.
locationstringGoogle Cloud region, for exampleus-east1, from which the response was served.
queryNamestringDNS query name,RFC 1035 4.1.2.
queryTypestringDNS query type,IANA DNS Parameters: Resource Record (RR) TYPEs.
responseCodestringResponse code,IANA DNS Parameters: DNS RCODEs.
rdatastringDNS answer in presentation format,IANA DNS Parameters: Resource Record (RR) TYPEs, truncated to 260 bytes.
authAnswerstringAuthoritative answer,IANA DNS Parameters: DNS Header Flags.
sourceIpstringIP originating the query.
destinationIpstringTarget IP address, only applicable for forwarding cases.
protocolstringTCP orUDP.
queryTimestringTimestamp for when the DNS query was sent.
vmInstanceIdstringCompute Engine VM instance name, only applicable to queries initiated by Compute Engine VMs.
vmProjectNumberstringGoogle Cloud project ID of the network from which the query was sent,only applicable to queries initiated by Compute Engine VM instances.
serverlessInstanceIdstringServerless instance ID from which the query was sent, only applicableto queries initiated by Serverless.

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.