# Collect Microsoft Windows DNS logs

Supported in:

This document:

- Describes the deployment architecture and installation steps, plus any required configuration that produce logs supported by the Google Security Operations Parser for Microsoft Windows DNS events. For an overview of Google SecOps data ingestion, see [Data ingestion to Google Security Operations](https://docs.cloud.google.com/chronicle/docs/data-ingestion-flow).
- Includes information about how the parser maps fields in the original log to Google SecOps Unified Data Model fields.

Based on your deployment architecture, configure Bindplane Agent or the
NXLog agent to ingest Windows DNS logs into Google SecOps.
We recommend that you use Bindplane Agent to forward the Windows DNS logs into Google Security Operations.

Information in this document applies to the parser with the WINDOWS_DNS ingestion label.
The ingestion label identifies which parser normalizes raw log data to structured UDM format.

## Before you begin

Before you configure Bindplane Agent or NXLog Agent, complete the following tasks:

- Configure the Microsoft Windows DNS server. For more information, see [Install and configure DNS Server on Windows Server](https://learn.microsoft.com/en-us/windows-server/networking/dns/quickstart-install-configure-dns-server?tabs=powershell).
- Enable DNS diagnostic logging on the Windows DNS server. For more information, see [DNS Logging and Diagnostics](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn800669(v=ws.11)).
- Configure all systems with the UTC time zone.
- [Review supported devices and versions](https://docs.cloud.google.com/chronicle/docs/ingestion/default-parsers/windows-dns#review_supported_devices_and_versions)
- [Review supported log types](https://docs.cloud.google.com/chronicle/docs/ingestion/default-parsers/windows-dns#review_supported_log_types)

### Review supported devices and versions

The Google Security Operations parser supports logs from the following Microsoft Windows Server versions.
Microsoft Windows Server is released with the following editions:
Foundation, Essentials, Standard, and Datacenter. The event schema of logs
generated by each edition do not differ.

- Microsoft Windows Server 2019
- Microsoft Windows Server 2016
- Microsoft Windows Server 2012 R2

  Google Security Operations parser supports logs collected by NXLog Enterprise Edition.

### Review supported log types

The Google Security Operations parser supports the following log types that are generated by Microsoft Windows DNS
servers. For more information about these log types, see the
[DNS Logging and Diagnostic](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn800669(v=ws.11)) documentation. The parser supports logs generated with English language text and is not supported with logs generated in non-English languages.

- Audit logs: For a description of this log type, see [Audit events](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn800669(v=ws.11)#audit-events).
- Analytics logs: For a description of this log type, see [Analytics events](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn800669(v=ws.11)#analytic-events).

- Set up the Microsoft Windows DNS servers.

  For more information, see [Installing and enabling DNS diagnostic logging](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn800669(v=ws.11)#installing-and-enabling-dns-diagnostic-logging).

> [!NOTE]
> **Note:** For Windows Server 2012 R2 and later, Google recommends collecting Analytics logs using the Event Tracing for Windows (ETW) provider (`windowseventtrace` for BindPlane or `im_etw` for NXLog), which is the ideal method for high-volume transaction data.

## Configure the Bindplane Agent

We recommend that you use Bindplane Agent to forward the Windows DNS logs into Google SecOps.

1. Install Bindplane Agent on each Windows DNS server. For more information about installing the Bindplane Agent, see [the Bindplane Agent installation instructions](https://github.com/observIQ/bindplane-agent?tab=readme-ov-file#installation).
2. Create a configuration file Bindplane Agent with the following contents:

       receivers:
         windowseventlog/dns_log:
          channel: Microsoft-Windows-DNSServer/Audit
          raw: true
         windowseventtrace/dns_analytic:
          providers:
           - name: Microsoft-Windows-DNSServer
          raw: true
          require_all_providers: true
          session_buffer_size: 256
          session_name: Bindplane-ETW-Session

       processors:
         batch:

       exporters:
         chronicle/dns_log:
           endpoint: https://malachiteingestion-pa.googleapis.com
           creds: '{
           "type": "service_account",
           "project_id": "malachite-projectname",
           "private_key_id": `PRIVATE_KEY_ID`,
           "private_key": `PRIVATE_KEY`,
           "client_email":"`SERVICE_ACCOUNT_NAME`@malachite-`PROJECT_ID`.`SERVICE_ACCOUNT_DOMAIN`",
           "client_id": `CLIENT_ID`,
           "auth_uri": "https://accounts.google.com/o/oauth2/auth",
           "token_uri": "https://oauth2.googleapis.com/token",
           "auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs",
           "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/`SERVICSERVICE_ACCOUNT_NAME`%40malachite-`PROJECT_ID`.`SERVICE_ACCOUNT_DOMAIN`",
           "universe_domain": "googleapis.com"
           }'
         log_type: 'WINDOWS_DNS'
         override_log_type: false
         raw_log_field: body
         customer_id: `CUSTOMER_ID`

       service:
         pipelines:
           logs/dns:
             receivers:
               - windowseventlog/dns_log
               - windowseventtrace/dns_analytic
             processors: [batch]
             exporters: [chronicle/dns_log]

3. Replace the `PRIVATE_KEY_ID`, `PRIVATE_KEY` `SERVICSERVICE_ACCOUNT_NAME`,`PROJECT_ID`, `CLIENT_ID`, `SERVICE_ACCOUNT_DOMAIN` and `CUSTOMER_ID` with the respective values from the service account JSON file which you can download from Google Cloud Platform. For more information about service account keys, see [Create and delete service account keys documentation](https://docs.cloud.google.com/iam/docs/keys-create-delete).

   > [!CAUTION]
   > **Caution:** To avoid **HTTP 429 (Too Many Requests)** errors and ingestion delays, don't reuse the same shared key or storage account across multiple feeds.

4. To start the Bindplane (formerly known as observerIQ) agent service, select **Services \> Extended \> the Bindplane Service \>
   Start**.

## Forward logs to Google SecOps with the Bindplane agent

1. Install and set up a **Windows Virtual Machine**.
2. Install and configure the Bindplane agent on Windows to forward logs to Google SecOps. For more information about how to install and configure the Bindplane agent, see [the Bindplane agent installation and configuration instructions](https://bindplane.com/docs/getting-started/quickstart-guide).

If you encounter issues when you create feeds, contact [Google SecOps support](https://docs.cloud.google.com/chronicle/docs/support).

## Configure NXLog Agent and the Google Security Operations forwarder

The following diagram shows an architecture in which NXLog agents are installed to collect and send Microsoft Windows DNS events to Google SecOps.
Compare this information with your environment to be sure these components are
installed. Your deployment might be different from this representation.

![NXLog forwarder ingestion](https://docs.cloud.google.com/static/chronicle/docs/ingestion/default-parsers/images/parser-win-dns-architecture.png)

If you use NXLog Agent instead of Bindplane Agent, complete the following
prerequisites:
- Install NXLog on clustered Microsoft Windows servers to
collect and forward logs to the central Microsoft Windows or Linux server.
- Install Google SecOps forwarder on the central Microsoft Windows or Linux Server.

1. Install NXLog on each Microsoft Windows DNS server. Follow the [NXLog documentation](https://nxlog.co/documentation/nxlog-user-guide/deploy-windows.html#deploy-windows).
2. Create a configuration file for each NXLog instance. Use the *im_etw*
   input module for extracting DNS analytical logs and *im_msvistalog* input module
   for audit logs.

   - For more information about the *im_etw* input module, see [Event Tracing for Microsoft Windows (im_etw)](https://nxlog.co/documentation/nxlog-user-guide/deploy-windows.html#deploy-windows), including information about [configuring NXLog for Microsoft Windows DNS](https://nxlog.co/documentation/nxlog-user-guide/windows-dns-server.html#dns_events_msvistalog).
   - For more information about the *im_msvistalog* input module, see [Event log for Microsoft Windows 2008/Vista and later (im_msvistalog)](https://nxlog.co/documentation/nxlog-user-guide/im_msvistalog.html).

   Here is an example NXLog configuration. Replace `<hostname>` and
   `<port>` values with information about the central Microsoft Windows or Linux
   server. To optionally convert and parse logs to JSON, rather than XML, change
   the line `Exec to_xml();` to `Exec to_json();`. For more information,
   see the NXLog documentation about the
   [om_tcp module](https://nxlog.co/documentation/nxlog-user-guide/om_tcp.html).

       define ROOT C:\Program Files\nxlog
       define WINDNS_OUTPUT_DESTINATION_ADDRESS <hostname>
       define WINDNS_OUTPUT_DESTINATION_PORT <port>

       Moduledir   %ROOT%\modules
       CacheDir    %ROOT%\data
       Pidfile     %ROOT%\data\nxlog.pid
       SpoolDir    %ROOT%\data
       LogFile     %ROOT%\data\nxlog.log

       <Extension syslog>
           Module      xm_syslog
       </Extension>

       # To collect XML logs, use the below NXLog module
       <Extension xml>
           Module      xm_xml
       </Extension>

       # To collect JSON logs, use the below NXLog module
       <Extension json>
           Module      xm_json
       </Extension>

       <Input eventlog>
           Module      im_etw
           Provider    Microsoft-Windows-DNSServer
       </Input>

       <Input auditeventlog>
           Module      im_msvistalog
           <QueryXML>
               <QueryList>
                   <Query Id="0" Path="Microsoft-Windows-DNSServer/Audit">
                       <Select Path="Microsoft-Windows-DNSServer/Audit">*</Select>
                   </Query>
               </QueryList>
           </QueryXML>
       </Input>

       <Output out_chronicle_windns>
           Module      om_tcp
           Host        %WINDNS_OUTPUT_DESTINATION_ADDRESS%
           Port        %WINDNS_OUTPUT_DESTINATION_PORT%
           Exec        $EventTime = integer($EventTime) / 1000;
           Exec        $EventReceivedTime = integer($EventReceivedTime) / 1000;
           Exec        to_xml(); # To collect JSON, use to_json()
       </Output>

       <Route analytical_windns_to_chronicle>
           Path    eventlog => out_chronicle_windns
       </Route>

       <Route audit_windns_to_chronicle>
           Path    auditeventlog => out_chronicle_windns
       </Route>

3. Install the Google Security Operations forwarder on the central Microsoft Windows or Linux server.
   See the [Installing and configuring the forwarder on Linux](https://docs.cloud.google.com/chronicle/docs/install/forwarder-linux)
   or [Installing and configuring the forwarder on Microsoft Windows](https://docs.cloud.google.com/chronicle/docs/install/forwarder-windows)
   for information about installing and configuring the forwarder.

4. Configure the Google Security Operations forwarder to send logs to Google Security Operations.
   Here is an example forwarder configuration.

         - syslog:
             common:
               enabled: true
               data_type: WINDOWS_DNS
               batch_n_seconds: 10
               batch_n_bytes: 1048576
             tcp_address: 0.0.0.0:10518
             connection_timeout_sec: 60

## Supported Windows DNS log formats

The Windows DNS parser supports logs in JSON, XML, SYSLOG + KV and
SYSLOG formats.

## Supported Windows DNS sample logs

- JSON:

      {
        "EventTime": 1640073312000,
        "Hostname": "WIN-TEST",
        "Keywords": "4611686018427912192",
        "EventType": "INFO",
        "SeverityValue": 2,
        "Severity": "INFO",
        "EventID": 514,
        "SourceName": "Microsoft-Windows-DNSServer",
        "ProviderGuid": "{EB79061A-A566-4698-9119-3ED2807060E7}",
        "Version": 0,
        "TaskValue": 5,
        "OpcodeValue": 0,
        "RecordNumber": 1,
        "ExecutionProcessID": 2244,
        "ExecutionThreadID": 1448,
        "Channel": "Microsoft-Windows-DNSServer/Audit",
        "Domain": "DNSTEST",
        "AccountName": "Administrator",
        "UserID": "S-1-2-3",
        "AccountType": "User",
        "Message": "The zone dnstest.local was updated. The SecondaryServers setting has been set to deny zone transfers. [virtualization instance: .].",
        "Category": "ZONE_OP",
        "Opcode": "Info",
        "Zone": "dnstest.local",
        "PropertyKey": "SecondaryServers",
        "NewValue": "deny zone transfers",
        "VirtualizationID": ".",
        "EventReceivedTime": 1640073312001,
        "SourceModuleName": "auditeventlog",
        "SourceModuleType": "im_msvistalog"
      }

- XML:

      <Event>
        <SourceName>Microsoft-Windows-DNSServer</SourceName>
        <ProviderGuid>{EB79061A-A566-4698-9119-3ED2807060E7}
        </ProviderGuid>
        <EventID>256</EventID>
        <Version>0</Version>
        <ChannelID>16</ChannelID>
        <OpcodeValue>0</OpcodeValue>
        <TaskValue>1</TaskValue>
        <Keywords>9223372036854775809</Keywords>
        <EventTime>1640073312000</EventTime>
        <ExecutionProcessID>2476</ExecutionProcessID>
        <ExecutionThreadID>3972</ExecutionThreadID>
        <EventType>INFO</EventType>
        <SeverityValue>2</SeverityValue>
        <Severity>INFO</Severity>
        <Hostname>WIN-TEST</Hostname>
        <Domain>NT AUTHORITY</Domain>
        <AccountName>SYSTEM</AccountName>
        <UserID>S-1-2-3</UserID>
        <AccountType>User</AccountType>
        <Flags>256</Flags>
        <TCP>0</TCP>
        <InterfaceIP>198.51.100.5</InterfaceIP>
        <Source>198.51.100.0</Source>
        <RD>1</RD>
        <QNAME>www.google.com.</QNAME>
        <QTYPE>1</QTYPE>
        <XID>55835</XID>
        <Port>50843</Port>
        <BufferSize>43</BufferSize>
        <PacketData>0xDA1B0100000100000000000006766F727465780464617461096D6963726F736F667403636F6D0000010001</PacketData>
        <AdditionalInfo>.</AdditionalInfo>
        <EventReceivedTime>1640073312001</EventReceivedTime>
        <SourceModuleName>eventlog</SourceModuleName>
        <SourceModuleType>im_etw</SourceModuleType>
      </Event>

- SYSLOG + KV:

      UDP question info at 00000027580C8220  Socket = 556  Remote addr 198.51.100.1, port 60766  Time Query=559415, Queued=0, Expire=0  Buf length = 0x0fa0 (4000)  Msg length = 0x0044 (68)  Message:    XID       0x49d7    Flags     0x0100      QR        0 (QUESTION)      OPCODE    0 (QUERY)      AA        0      TC        0      RD        1      RA        0      Z         0      CD        0      AD        0      RCODE     0 (NOERROR)    QCOUNT    1    ACOUNT    0    NSCOUNT   0    ARCOUNT   0    QUESTION SECTION:    Offset = 0x000c, RR count = 0    Name      \"(5)_ldap(4)_tcp(4)INMS(6)_sites(14)ForestDnsZones(8)genmills(3)com(0)\"      QTYPE   SRV (33)      QCLASS  1    ANSWER SECTION:      empty    AUTHORITY SECTION:      empty    ADDITIONAL SECTION:      empty

- SYSLOG

      29.11.2023 14:13:11 1B14 PACKET 00000274481BF1B0 UDP Snd 198.51.100.0 14fc Q [0001 D NOERROR] A (23)win-dns(10)westeurope(8)test(5)azure(3)com(0)

## Field mapping reference: device log fields to UDM fields

This section describes how the parser maps original device log fields to
Unified Data Model (UDM) fields.

> [!NOTE]
> **Note:** The % values (e.g. %1, %2, %3, %{EventID}) are variable placeholders.

The following table lists the log fields of the `WINDOWS_DNS` log type and their corresponding UDM fields.

### Common fields

| **NXLog field** | **UDM field** | **Comment** |
|---|---|---|
| `SourceName` | `metadata.vendor_name = "Microsoft"` <br /> `metadata.product_name = "Windows DNS Server"` |   |
| `EventID` | `security_result.rule_name` | Stored as "`EventID: %{EventID}`". In events with `Error` and `Warning` level. |
| `Severity` | `security_result.severity` | The values are mapped to the UDM field enum as follows: 0 (None) - `UNKNOWN_SEVERITY` 1 (Critical) - `INFORMATIONAL` 2 (Error) - `ERROR` 3 (Warning) - `ERROR` 4 (Informational) - `INFORMATIONAL` 5 (Verbose) - `INFORMATIONAL` |
| `EventTime` | `metadata.event_timestamp` |   |
| `ExecutionProcessID` | `principal.process.pid / target.process.pid` | Value stored in `target.process.pid` for the following Event IDs 256, 259, 261, 263, 266, 268, 270, 272, 273, 275, 278, 279, 280. Value stored in `principal.process.pid` for all other Event IDs. |
| `Channel` | `metadata.product_event_type` |   |
| `Hostname` | `principal.hostname / target.hostname` | Value stored in `target.hostname` for the following Event IDs: 256, 259, 261, 263, 266, 268, 270, 272, 273, 275, 278, 279, 280. <br /> Value stored in `principal.hostname` from all other Event IDs. |
| `UserID` | `principal.user.windows_sid / target.user.windows_sid` | Stored in `target.user.windows_sid` for the following Event IDs: 256, 259, 261, 263, 266, 268, 270, 272,273, 275, 278, 279, 280. <br /> Stored in `principal.user.windows_sid` for all other Event IDs |

### Analytic logs

| **Original log field** | **UDM field** | **Comment** |
|---|---|---|
| `AA` | `network.dns.authoritative` |   |
| `Destination` | `target.ip / principal.ip` | Populated in either principal and target. |
| `InterfaceIP` | `target.ip / principal.ip` | Stores DNS Server's IP address in `target.ip` for following Event IDs, 256, 259, 261, 263, 266, 268, 270, 272, 273, 275, 278, 279, 280. Stored in `principal.ip` for all other Event IDs (DNS response). |
| `PacketData` | `network.dns.answers.binary_data` |   |
| `Port` | `target.port / principal.port` |   |
| `QNAME` | `network.dns.questions.name, target.hostname` | Do not store `QNAME` in `target.hostname` for following Event IDs: 256, 259, 261, 263, 266, 268, 270, 272, 273, 275, 278, 279, and 280 |
| `QTYPE` | `network.dns.questions.type` |   |
| `RCODE` | `network.dns.response_code` |   |
| `RD` | `network.dns.recursion_desired` |   |
| `Reason` | `security_result.summary` |   |
| `Source` | `principal.ip / target.ip` | Source IPv4/IPv6 address of the machine that initiated the DNS request. Stored in `target.ip` for Event ID 274. Stored in `target.ip` for Event ID 265 and 269. `InterfaceIP` contains the secondary server's IP address (principal) and Source (target) is the primary server's IP address. |
| `TCP` | `network.ip_protocol` |   |
| `XID` | `network.dns.id` |   |
| `EventID` | `network.direction` | If the `EventID` log field value contains one of the following values, then the `network.direction` UDM field is set to `OUTBOUND`. - `256` - `259` - `261` - `263` - `266` - `268` - `270` - `272` - `273` - `275` - `278` - `279` - `280` <br /> Else, the `network.direction` UDM field is set to `INBOUND`. |
| `Flags` | `additional.fields` |   |
| `Zone` | `target.resource.name` |   |
| `ZoneScope` | `target.resource.name` |   |
| `ForwardInterfaceIP` | `target.ip / principal.ip` | Stores DNS Server's IP address in `target.ip` for following Event IDs, 256, 259, 261, 263, 266, 268, 270, 272, 273, 275, 278, 279, 280. Stored in `principal.ip` for all other Event IDs (DNS response). |
| `PolicyName` | `security_result.detection_fields` |   |
| `SECURE` | `additional.fields` |   |
| `ServerScope` | `additional.fields` |   |
| `CacheScope` | `additional.fields` |   |
| `AD` | `additional.fields` |   |
| `DNSSEC` | `additional.fields` |   |
| `Scope` | `target.resource.name` |   |
| `Computer` | `principal.hostname / target.hostname` | Value stored in `target.hostname` for the following Event IDs: 256, 259, 261, 263, 266, 268, 270, 272, 273, 275, 278, 279, 280. <br /> Value stored in `principal.hostname` from all other Event IDs. |

### Audit logs

> [!NOTE]
> **Note:** The original attribute collected and stored to target.resource.name is different for each Event ID.

| **Original log field** | **UDM field** | **Note** |
|---|---|---|
| `Name` | `target.resource.name` | Value is collected from events with Event ID 512. |
| `Policy` | `target.resource.name` | Value is collected from events with Event ID 577, 578, 579, 580, 581, and 582, which are mapped to the `SETTING_*` event types. |
| `QNAME` | `network.dns.questions.name, target.hostname` |   |
| `QTYPE` | `network.dns.questions.type` |   |
| `RecursionScope` | `target.resource.name` | Value is collected from events with Event IDs mapped to `SETTING_*` event types. |
| `Scope` | `target.resource.name` | Value is collected from events with Event IDs mapped to `SETTING_*` event types. |
| `Setting` | `target.resource.name` | Value is collected from events with Event IDs mapped to `SETTING_*` event types. |
| `Source` | `principal.ip` |   |
| `Zone` | `target.resource.name` | Value is collected from events with Event IDs mapped to `SETTING_*` event types. |
| `ZoneScope` | `target.resource.name` | Value is collected from events with Event IDs mapped to `SETTING_*` event types. |

### SourceModuleType im_file logs

> [!WARNING]
> **Deprecated:**
>
> The following `labels` fields for UDM nouns are deprecated: `about.labels`, `intermediary.labels`, `observer.labels`, `principal.labels`, `src.labels`, `security_result.about.labels`, and `target.labels`. For existing parsers, in addition to these UDM fields, the logs fields are also mapped to key/value `additional.fields` UDM fields. For new parsers, the key/value settings in `additional.fields` UDM fields are used instead of the deprecated `labels` UDM fields. We recommend that you update the existing rules to use the key/value settings in the `additional.fields` UDM fields instead of the deprecated `labels` UDM fields.

| **Original log field** | **UDM field** | **Note** |
|---|---|---|
| `EventReceivedTime` | `metadata.collected_timestamp` |   |
| `Expire` | `about.labels` (deprecated) |   |
| `Expire` | `additional.fields` |   |
| `InternalPacketIdentifier` | `about.labels` (deprecated) |   |
| `InternalPacketIdentifier` | `additional.fields` |   |
|   | `about.labels` (deprecated) | Grok: Extracted the `internal_packet_identifier` field from the raw log and then mapped the `internal_packet_identifier` field to the `about.labels` UDM field. |
|   | `additional.fields` | Grok: Extracted the `internal_packet_identifier` field from the raw log and then mapped the `internal_packet_identifier` field to the `additional.fields` UDM field. |
| `packet_identifier` | `about.labels` (deprecated) |   |
| `packet_identifier` | `additional.fields` |   |
| `LogInfo` | `metadata.description` |   |
| `PortNum` | `principal.port` |   |
| `Queued` | `about.labels` (deprecated) |   |
| `Queued` | `additional.fields` |   |
| `Socket` | `principal.labels` (deprecated) |   |
| `Socket` | `additional.fields` |   |
| `TimeQuery` | `about.labels` (deprecated) |   |
| `TimeQuery` | `additional.fields` |   |
| `BufLen` | `about.labels` (deprecated) |   |
| `BufLen` | `additional.fields` |   |
| `Opcode` | `network.dns.opcode` | If the `Opcode` log field value is equal to `Q`, then the `network.dns.opcode` UDM field is set to `0`. Else, if the `Opcode` log field value is equal to `I`, then the `network.dns.opcode` UDM field is set to `1`. Else, if the `Opcode` log field value is equal to `S`, then the `network.dns.opcode` UDM field is set to `2`. Else, if the `Opcode` log field value is equal to `N`, then the `network.dns.opcode` UDM field is set to `4`. Else, if the `Opcode` log field value is equal to `U`, then the `network.dns.opcode` UDM field is set to `5`. |
| `opcode` | `network.dns.opcode` | Grok: Extracted the `opcode` field from the raw log. If the `opcode` field value is equal to `Q`, then the `network.dns.opcode` UDM field is set to `0`. Else, if the `opcode` field value is equal to `I`, then the `network.dns.opcode` UDM field is set to `1`. Else, if the `opcode` field value is equal to `S`, then the `network.dns.opcode` UDM field is set to `2`. Else, if the `opcode` field value is equal to `N`, then the `network.dns.opcode` UDM field is set to `4`. Else, if the `opcode` field value is equal to `U`, then the `network.dns.opcode` UDM field is set to `5`. |
| `Protocol` | `network.ip_protocol` | If the `Protocol` log field value is equal to `1` or `ICMP`, then the `network.ip_protocol` UDM field is set to `ICMP`. Else, if the `Protocol` log field value is equal to `2` or `IGMP`, then the `network.ip_protocol` UDM field is set to `IGMP`. Else, if the `Protocol` log field value is equal to `6` or `TCP`, then the `network.ip_protocol` UDM field is set to `TCP`. Else, if the `Protocol` log field value is equal to `17` or `UDP`, then the `network.ip_protocol` UDM field is set to `UDP`. Else, if the `Protocol` log field value is equal to `41` or `IP6IN4`, then the `network.ip_protocol` UDM field is set to `IP6IN4`. Else, if the `Protocol` log field value is equal to `47` or `GRE`, then the `network.ip_protocol` UDM field is set to `GRE`. Else, if the `Protocol` log field value is equal to `50` or `ESP`, then the `network.ip_protocol` UDM field is set to `ESP`. Else, if the `Protocol` log field value is equal to `88` or `EIGRP`, then the `network.ip_protocol` UDM field is set to `EIGRP`. Else, if the `Protocol` log field value is equal to `97` or `ETHERIP`, then the `network.ip_protocol` UDM field is set to `ETHERIP`. Else, if the `Protocol` log field value is equal to `103` or `PIM`, then the `network.ip_protocol` UDM field is set to `PIM`. Else, if the `Protocol` log field value is equal to `112` or `VRRP`, then the `network.ip_protocol` UDM field is set to `VRRP`. |
|   | `network.ip_protocol` | Grok: Extracted the `ip_protocol` field from the raw log. If the `ip_protocol` field value is equal to `1` or `ICMP`, then the `network.ip_protocol` UDM field is set to `ICMP`. Else, if the `ip_protocol` field value is equal to `2` or `IGMP`, then the `network.ip_protocol` UDM field is set to `IGMP`. Else, if the `ip_protocol` field value is equal to `6` or `TCP`, then the `network.ip_protocol` UDM field is set to `TCP`. Else, if the `ip_protocol` field value is equal to `17` or `UDP`, then the `network.ip_protocol` UDM field is set to `UDP`. Else, if the `ip_protocol` field value is equal to `41` or `IP6IN4`, then the `network.ip_protocol` UDM field is set to `IP6IN4`. Else, if the `ip_protocol` field value is equal to `47` or `GRE`, then the `network.ip_protocol` UDM field is set to `GRE`. Else, if the `ip_protocol` field value is equal to `50` or `ESP`, then the `network.ip_protocol` UDM field is set to `ESP`. Else, if the `ip_protocol` field value is equal to `88` or `EIGRP`, then the `network.ip_protocol` UDM field is set to `EIGRP`. Else, if the `ip_protocol` field value is equal to `97` or `ETHERIP`, then the `network.ip_protocol` UDM field is set to `ETHERIP`. Else, if the `ip_protocol` field value is equal to `103` or `PIM`, then the `network.ip_protocol` UDM field is set to `PIM`. Else, if the `ip_protocol` field value is equal to `112` or `VRRP`, then the `network.ip_protocol` UDM field is set to `VRRP`. |
|   | `network.dns.response_code` | Grok: Extracted the `dns_response_code` field from the raw log. If the `dns_response_code` field value is equal to `NOERROR`, then the `network.dns.response_code` UDM field is set to `0`. Else, if the `dns_response_code` field value is equal to `FORMERR`, then the `network.dns.response_code` UDM field is set to `1`. Else, if the `dns_response_code` field value is equal to `SERVFAIL`, then the `network.dns.response_code` UDM field is set to `2`. Else, if the `dns_response_code` field value is equal to `NXDOMAIN`, then the `network.dns.response_code` UDM field is set to `3`. Else, if the `dns_response_code` field value is equal to `NOTIMP`, then the `network.dns.response_code` UDM field is set to `4`. Else, if the `dns_response_code` field value is equal to `REFUSED`, then the `network.dns.response_code` UDM field is set to `5`. Else, if the `dns_response_code` field value is equal to `YXDOMAIN`, then the `network.dns.response_code` UDM field is set to `6`. Else, if the `dns_response_code` field value is equal to `YXRRSET`, then the `network.dns.response_code` UDM field is set to `7`. Else, if the `dns_response_code` field value is equal to `NXRRSET`, then the `network.dns.response_code` UDM field is set to `8`. Else, if the `dns_response_code` field value is equal to `NOTAUTH`, then the `network.dns.response_code` UDM field is set to `9`. Else, if the `dns_response_code` field value is equal to `NOTZONE`, then the `network.dns.response_code` UDM field is set to `10`. Else, if the `dns_response_code` field value is equal to `DSOTYPENI`, then the `network.dns.response_code` UDM field is set to `11`. Else, if the `dns_response_code` field value is equal to `BADVERS`, then the `network.dns.response_code` UDM field is set to `16`. Else, if the `dns_response_code` field value is equal to `BADSIG`, then the `network.dns.response_code` UDM field is set to `16`. Else, if the `dns_response_code` field value is equal to `BADKEY`, then the `network.dns.response_code` UDM field is set to `17`. Else, if the `dns_response_code` field value is equal to `BADTIME`, then the `network.dns.response_code` UDM field is set to `18`. Else, if the `dns_response_code` field value is equal to `BADMODE`, then the `network.dns.response_code` UDM field is set to `19`. Else, if the `dns_response_code` field value is equal to `BADNAME`, then the `network.dns.response_code` UDM field is set to `20`. Else, if the `dns_response_code` field value is equal to `BADALG`, then the `network.dns.response_code` UDM field is set to `21`. Else, if the `dns_response_code` field value is equal to `BADTRUNC`, then the `network.dns.response_code` UDM field is set to `22`. Else, if the `dns_response_code` field value is equal to `BADCOOKIE`, then the `network.dns.response_code` UDM field is set to `23`. |
|   | `network.dns.authoritative` | Grok: Extracted the `authoritative` field from the raw log. If the `authoritative` field value is equal to `A`, then the `network.dns.authoritative` UDM field is set to `true`. |
|   | `network.dns.truncated` | Grok: Extracted the `truncated` field from the raw log. If the truncated field value is equal to T, then the network.dns.truncated UDM field is set to true. |
|   | `network.dns.recursion_desired` | Grok: Extracted the `recursion_desired` field from the raw log. If the `recursion_desired` field value is equal to `D`, then the `network.dns.recursion_desired` UDM field is set to `true`. |
|   | `network.dns.recursion_available` | Grok: Extracted the `recursion_available` field from the raw log. If the `recursion_available` field value is equal to `R`, then the `network.dns.recursion_available` UDM field is set to `true`. |
| `QueryType` | `network.dns.response` | If the `QueryType` log field value is equal to `R`, then the `network.dns.response` UDM field is set to `true`. Else, the `network.dns.response` UDM field is set to `false`. |
| `req_or_resp` | `network.dns.response` | Grok: Extracted the `req_or_resp` field from the raw log. If the `req_or_resp` field value is equal to `R`, then the `network.dns.response` UDM field is set to `true`. Else, the `network.dns.response` UDM field is set to `false`. |
| `QuestionName` | `network.dns.questions.name, target.hostname` |   |
| `domain` | `network.dns.questions.name, target.hostname` | Grok: Extracted the `domain` field from the raw log and then mapped the `domain` field to the `network.dns.questions.name` and `target.hostname` UDM field. |
| `QuestionType` | `network.dns.questions.type` | If the `QuestionType` field value is equal to `A`, then the `network.dns.question.type` UDM field is set to `1`. Else, if the `QuestionType` field value is equal to `NS`, then the `network.dns.question.type` UDM field is set to `2`. Else, if the `QuestionType` field value is equal to `MD`, then the `network.dns.question.type` UDM field is set to `3`. Else, if the `QuestionType` field value is equal to `MF`, then the `network.dns.question.type` UDM field is set to `4`. Else, if the `QuestionType` field value is equal to `CNAME`, then the `network.dns.question.type` UDM field is set to `5`. Else, if the `QuestionType` field value is equal to `SOA`, then the `network.dns.question.type` UDM field is set to `6`. Else, if the `QuestionType` field value is equal to `MB`, then the `network.dns.question.type` UDM field is set to `7`. Else, if the `QuestionType` field value is equal to `MG`, then the `network.dns.question.type` UDM field is set to `8`. Else, if the `QuestionType` field value is equal to `MR`, then the `network.dns.question.type` UDM field is set to `9`. Else, if the `QuestionType` field value is equal to `NULL`, then the `network.dns.question.type` UDM field is set to `10`. Else, if the `QuestionType` field value is equal to `WKS`, then the `network.dns.question.type` UDM field is set to `11`. Else, if the `QuestionType` field value is equal to `PTR`, then the `network.dns.question.type` UDM field is set to `12`. Else, if the `QuestionType` field value is equal to `HINFO`, then the `network.dns.question.type` UDM field is set to `13`. Else, if the `QuestionType` field value is equal to `MINFO`, then the `network.dns.question.type` UDM field is set to `14`. Else, if the `QuestionType` field value is equal to `MX`, then the `network.dns.question.type` UDM field is set to `15`. Else, if the `QuestionType` field value is equal to `TXT`, then the `network.dns.question.type` UDM field is set to `16`. Else, if the `QuestionType` field value is equal to `RP`, then the `network.dns.question.type` UDM field is set to `17`. Else, if the `QuestionType` field value is equal to `AFSDB`, then the `network.dns.question.type` UDM field is set to `18`. Else, if the `QuestionType` field value is equal to `X25`, then the `network.dns.question.type` UDM field is set to `19`. Else, if the `QuestionType` field value is equal to `ISDN`, then the `network.dns.question.type` UDM field is set to `20`. Else, if the `QuestionType` field value is equal to `RT`, then the `network.dns.question.type` UDM field is set to `21`. Else, if the `QuestionType` field value is equal to `NSAP`, then the `network.dns.question.type` UDM field is set to `22`. Else, if the `QuestionType` field value is equal to `NSAP-PT`, then the `network.dns.question`.type UDM field is se`t` to 23. Else, if the `QuestionType` field value is equal to `SIG`, then the `network.dns.question.type` UDM field is set to `24`. Else, if the `QuestionType` field value is equal to `KEY`, then the `network.dns.question.type` UDM field is set to `25`. Else, if the `QuestionType` field value is equal to `PX`, then the `network.dns.question.type` UDM field is set to `26`. Else, if the `QuestionType` field value is equal to `GPOS`, then the `network.dns.question.type` UDM field is set to `27`. Else, if the `QuestionType` field value is equal to `AAAA`, then the `network.dns.question.type` UDM field is set to `28`. Else, if the `QuestionType` field value is equal to `LOC`, then the `network.dns.question.type` UDM field is set to `29`. Else, if the `QuestionType` field value is equal to `NXT`, then the `network.dns.question.type` UDM field is set to `30`. Else, if the `QuestionType` field value is equal to `EID`, then the `network.dns.question.type` UDM field is set to `31`. Else, if the `QuestionType` field value is equal to `NIMLOC`, then the `network.dns.question.type` UDM field is set to `32`. Else, if the `QuestionType` field value is equal to `SRV`, then the `network.dns.question.type` UDM field is set to `33`. Else, if the `QuestionType` field value is equal to `ATMA`, then the `network.dns.question.type` UDM field is set to `34`. Else, if the `QuestionType` field value is equal to `NAPTR`, then the `network.dns.question.type` UDM field is set to `35`. Else, if the `QuestionType` field value is equal to `KX`, then the `network.dns.question.type` UDM field is set to `36`. Else, if the `QuestionType` field value is equal to `CERT`, then the `network.dns.question.type` UDM field is set to `37`. Else, if the `QuestionType` field value is equal to `A6`, then the `network.dns.question.type` UDM field is set to `38`. Else, if the `QuestionType` field value is equal to `DNAME`, then the `network.dns.question.type` UDM field is set to `39`. Else, if the `QuestionType` field value is equal to `SINK`, then the `network.dns.question.type` UDM field is set to `40`. Else, if the `QuestionType` field value is equal to `OPT`, then the `network.dns.question.type` UDM field is set to `41`. Else, if the `QuestionType` field value is equal to `APL`, then the `network.dns.question.type` UDM field is set to `42`. Else, if the `QuestionType` field value is equal to `DS`, then the `network.dns.question.type` UDM field is set to `43`. Else, if the `QuestionType` field value is equal to `SSHFP`, then the `network.dns.question.type` UDM field is set to `44`. Else, if the `QuestionType` field value is equal to `IPSECKE`, then the `network.dns.question.type` UDM field is set to `45`. Else, if the `QuestionType` field value is equal to `RRSIG`, then the `network.dns.question.type` UDM field is set to `46`. Else, if the `QuestionType` field value is equal to `NSEC`, then the `network.dns.question.type` UDM field is set to `47`. Else, if the `QuestionType` field value is equal to `DNSKEY`, then the `network.dns.question.type` UDM field is set to `48`. Else, if the `QuestionType` field value is equal to `DHCID`, then the `network.dns.question.type` UDM field is set to `49`. Else, if the `QuestionType` field value is equal to `NSEC3`, then the `network.dns.question.type` UDM field is set to `50`. Else, if the `QuestionType` field value is equal to `NSEC3PA`, then the `network.dns.question.type` UDM field is set to `51`. Else, if the `QuestionType` field value is equal to `TLSA`, then the `network.dns.question.type` UDM field is set to `52`. Else, if the `QuestionType` field value is equal to `SMIMEA`, then the `network.dns.question.type` UDM field is set to `53`. Else, if the `QuestionType` field value is equal to `UNASSIG`, then the `network.dns.question.type` UDM field is set to `54`. Else, if the `QuestionType` field value is equal to `HIP`, then the `network.dns.question.type` UDM field is set to `55`. Else, if the `QuestionType` field value is equal to `NINFO`, then the `network.dns.question.type` UDM field is set to `56`. Else, if the `QuestionType` field value is equal to `RKEY`, then the `network.dns.question.type` UDM field is set to `57`. Else, if the `QuestionType` field value is equal to `TALINK`, then the `network.dns.question.type` UDM field is set to `58`. Else, if the `QuestionType` field value is equal to `CDS`, then the `network.dns.question.type` UDM field is set to `59`. Else, if the `QuestionType` field value is equal to `CDNSKEY`, then the `network.dns.question.type` UDM field is set to `60`. Else, if the `QuestionType` field value is equal to `OPENPGP`, then the `network.dns.question.type` UDM field is set to `61`. Else, if the `QuestionType` field value is equal to `CSYNC`, then the `network.dns.question.type` UDM field is set to `62`. Else, if the `QuestionType` field value is equal to `ZONEMD`, then the `network.dns.question.type` UDM field is set to `63`. Else, if the `QuestionType` field value is equal to `SVCB`, then the `network.dns.question.type` UDM field is set to `64`. Else, if the `QuestionType` field value is equal to `HTTPS`, then the `network.dns.question.type` UDM field is set to `65`. Else, if the `QuestionType` field value is equal to `SPF`, then the `network.dns.question.type` UDM field is set to `99`. Else, if the `QuestionType` field value is equal to `UINFO`, then the `network.dns.question.type` UDM field is set to `100`. Else, if the `QuestionType` field value is equal to `UID`, then the `network.dns.question.type` UDM field is set to `101`. Else, if the `QuestionType` field value is equal to `GID`, then the `network.dns.question.type` UDM field is set to `102`. Else, if the `QuestionType` field value is equal to `UNSPEC`, then the `network.dns.question.type` UDM field is set to `103`. Else, if the `QuestionType` field value is equal to `NID`, then the `network.dns.question.type` UDM field is set to `104`. Else, if the `QuestionType` field value is equal to `L32`, then the `network.dns.question.type` UDM field is set to `105`. Else, if the `QuestionType` field value is equal to `L64`, then the `network.dns.question.type` UDM field is set to `106`. Else, if the `QuestionType` field value is equal to `LP`, then the `network.dns.question.type` UDM field is set to `107`. Else, if the `QuestionType` field value is equal to `EUI48`, then the `network.dns.question.type` UDM field is set to `108`. Else, if the `QuestionType` field value is equal to `EUI64`, then the `network.dns.question.type` UDM field is set to `109`. Else, if the `QuestionType` field value is equal to `TKEY`, then the `network.dns.question.type` UDM field is set to `249`. Else, if the `QuestionType` field value is equal to `TSIG`, then the `network.dns.question.type` UDM field is set to `250`. Else, if the `QuestionType` field value is equal to `IXFR`, then the `network.dns.question.type` UDM field is set to `251`. Else, if the `QuestionType` field value is equal to `AXFR`, then the `network.dns.question.type` UDM field is set to `252`. Else, if the `QuestionType` field value is equal to `MAILB`, then the `network.dns.question.type` UDM field is set to `253`. Else, if the `QuestionType` field value is equal to `MAILA`, then the `network.dns.question.type` UDM field is set to `254`. Else, if the `QuestionType` field value is equal to `ALL`, then the `network.dns.question.type` UDM field is set to `255`. Else, if the `QuestionType` field value is equal to `URI`, then the `network.dns.question.type` UDM field is set to `256`. Else, if the `QuestionType` field value is equal to `CAA`, then the `network.dns.question.type` UDM field is set to `257`. Else, if the `QuestionType` field value is equal to `AVC`, then the `network.dns.question.type` UDM field is set to `258`. Else, if the `QuestionType` field value is equal to `DOA`, then the `network.dns.question.type` UDM field is set to `259`. Else, if the `QuestionType` field value is equal to `AMTRELA`, then the `network.dns.question.type` UDM field is set to `260`. Else, if the `QuestionType` field value is equal to `TA`, then the `network.dns.question.type` UDM field is set to `32768`. Else, if the `QuestionType` field value is equal to `DLV`, then the `network.dns.question.type` UDM field is set to `32769`. |
|   | `network.dns.questions.type` | Grok: Extracted the `dns_record_type` field from the raw log. If the `dns_record_type` field value is equal to `A`, then the `network.dns.question.type` UDM field is set to `1`. Else, if the `dns_record_type` field value is equal to `NS`, then the `network.dns.question.type` UDM field is set to `2`. Else, if the `dns_record_type` field value is equal to `MD`, then the `network.dns.question.type` UDM field is set to `3`. Else, if the `dns_record_type` field value is equal to `MF`, then the `network.dns.question.type` UDM field is set to `4`. Else, if the `dns_record_type` field value is equal to `CNAME`, then the `network.dns.question.type` UDM field is set to `5`. Else, if the `dns_record_type` field value is equal to `SOA`, then the `network.dns.question.type` UDM field is set to `6`. Else, if the `dns_record_type` field value is equal to `MB`, then the `network.dns.question.type` UDM field is set to `7`. Else, if the `dns_record_type` field value is equal to `MG`, then the `network.dns.question.type` UDM field is set to `8`. Else, if the `dns_record_type` field value is equal to `MR`, then the `network.dns.question.type` UDM field is set to `9`. Else, if the `dns_record_type` field value is equal to `NULL`, then the `network.dns.question.type` UDM field is set to `10`. Else, if the `dns_record_type` field value is equal to `WKS`, then the `network.dns.question.type` UDM field is set to `11`. Else, if the `dns_record_type` field value is equal to `PTR`, then the `network.dns.question.type` UDM field is set to `12`. Else, if the `dns_record_type` field value is equal to `HINFO`, then the `network.dns.question.type` UDM field is set to `13`. Else, if the `dns_record_type` field value is equal to `MINFO`, then the `network.dns.question.type` UDM field is set to `14`. Else, if the `dns_record_type` field value is equal to `MX`, then the `network.dns.question.type` UDM field is set to `15`. Else, if the `dns_record_type` field value is equal to `TXT`, then the `network.dns.question.type` UDM field is set to `16`. Else, if the `dns_record_type` field value is equal to `RP`, then the `network.dns.question.type` UDM field is set to `17`. Else, if the `dns_record_type` field value is equal to `AFSDB`, then the `network.dns.question.type` UDM field is set to `18`. Else, if the `dns_record_type` field value is equal to `X25`, then the `network.dns.question.type` UDM field is set to `19`. Else, if the `dns_record_type` field value is equal to `ISDN`, then the `network.dns.question.type` UDM field is set to `20`. Else, if the `dns_record_type` field value is equal to `RT`, then the `network.dns.question.type` UDM field is set to `21`. Else, if the `dns_record_type` field value is equal to `NSAP`, then the `network.dns.question.type` UDM field is set to `22`. Else, if the `dns_record_type` field value is equal to `NSAP-PT`, then the `network.dns.question`.type UDM field is set` to` 23. Else, if the `dns_record_type` field value is equal to `SIG`, then the `network.dns.question.type` UDM field is set to `24`. Else, if the `dns_record_type` field value is equal to `KEY`, then the `network.dns.question.type` UDM field is set to `25`. Else, if the `dns_record_type` field value is equal to `PX`, then the `network.dns.question.type` UDM field is set to `26`. Else, if the `dns_record_type` field value is equal to `GPOS`, then the `network.dns.question.type` UDM field is set to `27`. Else, if the `dns_record_type` field value is equal to `AAAA`, then the `network.dns.question.type` UDM field is set to `28`. Else, if the `dns_record_type` field value is equal to `LOC`, then the `network.dns.question.type` UDM field is set to `29`. Else, if the `dns_record_type` field value is equal to `NXT`, then the `network.dns.question.type` UDM field is set to `30`. Else, if the `dns_record_type` field value is equal to `EID`, then the `network.dns.question.type` UDM field is set to `31`. Else, if the `dns_record_type` field value is equal to `NIMLOC`, then the `network.dns.question.type` UDM field is set to `32`. Else, if the `dns_record_type` field value is equal to `SRV`, then the `network.dns.question.type` UDM field is set to `33`. Else, if the `dns_record_type` field value is equal to `ATMA`, then the `network.dns.question.type` UDM field is set to `34`. Else, if the `dns_record_type` field value is equal to `NAPTR`, then the `network.dns.question.type` UDM field is set to `35`. Else, if the `dns_record_type` field value is equal to `KX`, then the `network.dns.question.type` UDM field is set to `36`. Else, if the `dns_record_type` field value is equal to `CERT`, then the `network.dns.question.type` UDM field is set to `37`. Else, if the `dns_record_type` field value is equal to `A6`, then the `network.dns.question.type` UDM field is set to `38`. Else, if the `dns_record_type` field value is equal to `DNAME`, then the `network.dns.question.type` UDM field is set to `39`. Else, if the `dns_record_type` field value is equal to `SINK`, then the `network.dns.question.type` UDM field is set to `40`. Else, if the `dns_record_type` field value is equal to `OPT`, then the `network.dns.question.type` UDM field is set to `41`. Else, if the `dns_record_type` field value is equal to `APL`, then the `network.dns.question.type` UDM field is set to `42`. Else, if the `dns_record_type` field value is equal to `DS`, then the `network.dns.question.type` UDM field is set to `43`. Else, if the `dns_record_type` field value is equal to `SSHFP`, then the `network.dns.question.type` UDM field is set to `44`. Else, if the `dns_record_type` field value is equal to `IPSECKE`, then the `network.dns.question.type` UDM field is set to `45`. Else, if the `dns_record_type` field value is equal to `RRSIG`, then the `network.dns.question.type` UDM field is set to `46`. Else, if the `dns_record_type` field value is equal to `NSEC`, then the `network.dns.question.type` UDM field is set to `47`. Else, if the `dns_record_type` field value is equal to `DNSKEY`, then the `network.dns.question.type` UDM field is set to `48`. Else, if the `dns_record_type` field value is equal to `DHCID`, then the `network.dns.question.type` UDM field is set to `49`. Else, if the `dns_record_type` field value is equal to `NSEC3`, then the `network.dns.question.type` UDM field is set to `50`. Else, if the `dns_record_type` field value is equal to `NSEC3PA`, then the `network.dns.question.type` UDM field is set to `51`. Else, if the `dns_record_type` field value is equal to `TLSA`, then the `network.dns.question.type` UDM field is set to `52`. Else, if the `dns_record_type` field value is equal to `SMIMEA`, then the `network.dns.question.type` UDM field is set to `53`. Else, if the `dns_record_type` field value is equal to `UNASSIG`, then the `network.dns.question.type` UDM field is set to `54`. Else, if the `dns_record_type` field value is equal to `HIP`, then the `network.dns.question.type` UDM field is set to `55`. Else, if the `dns_record_type` field value is equal to `NINFO`, then the `network.dns.question.type` UDM field is set to `56`. Else, if the `dns_record_type` field value is equal to `RKEY`, then the `network.dns.question.type` UDM field is set to `57`. Else, if the `dns_record_type` field value is equal to `TALINK`, then the `network.dns.question.type` UDM field is set to `58`. Else, if the `dns_record_type` field value is equal to `CDS`, then the `network.dns.question.type` UDM field is set to `59`. Else, if the `dns_record_type` field value is equal to `CDNSKEY`, then the `network.dns.question.type` UDM field is set to `60`. Else, if the `dns_record_type` field value is equal to `OPENPGP`, then the `network.dns.question.type` UDM field is set to `61`. Else, if the `dns_record_type` field value is equal to `CSYNC`, then the `network.dns.question.type` UDM field is set to `62`. Else, if the `dns_record_type` field value is equal to `ZONEMD`, then the `network.dns.question.type` UDM field is set to `63`. Else, if the `dns_record_type` field value is equal to `SVCB`, then the `network.dns.question.type` UDM field is set to `64`. Else, if the `dns_record_type` field value is equal to `HTTPS`, then the `network.dns.question.type` UDM field is set to `65`. Else, if the `dns_record_type` field value is equal to `SPF`, then the `network.dns.question.type` UDM field is set to `99`. Else, if the `dns_record_type` field value is equal to `UINFO`, then the `network.dns.question.type` UDM field is set to `100`. Else, if the `dns_record_type` field value is equal to `UID`, then the `network.dns.question.type` UDM field is set to `101`. Else, if the `dns_record_type` field value is equal to `GID`, then the `network.dns.question.type` UDM field is set to `102`. Else, if the `dns_record_type` field value is equal to `UNSPEC`, then the `network.dns.question.type` UDM field is set to `103`. Else, if the `dns_record_type` field value is equal to `NID`, then the `network.dns.question.type` UDM field is set to `104`. Else, if the `dns_record_type` field value is equal to `L32`, then the `network.dns.question.type` UDM field is set to `105`. Else, if the `dns_record_type` field value is equal to `L64`, then the `network.dns.question.type` UDM field is set to `106`. Else, if the `dns_record_type` field value is equal to `LP`, then the `network.dns.question.type` UDM field is set to `107`. Else, if the `dns_record_type` field value is equal to `EUI48`, then the `network.dns.question.type` UDM field is set to `108`. Else, if the `dns_record_type` field value is equal to `EUI64`, then the `network.dns.question.type` UDM field is set to `109`. Else, if the `dns_record_type` field value is equal to `TKEY`, then the `network.dns.question.type` UDM field is set to `249`. Else, if the `dns_record_type` field value is equal to `TSIG`, then the `network.dns.question.type` UDM field is set to `250`. Else, if the `dns_record_type` field value is equal to `IXFR`, then the `network.dns.question.type` UDM field is set to `251`. Else, if the `dns_record_type` field value is equal to `AXFR`, then the `network.dns.question.type` UDM field is set to `252`. Else, if the `dns_record_type` field value is equal to `MAILB`, then the `network.dns.question.type` UDM field is set to `253`. Else, if the `dns_record_type` field value is equal to `MAILA`, then the `network.dns.question.type` UDM field is set to `254`. Else, if the `dns_record_type` field value is equal to `ALL`, then the `network.dns.question.type` UDM field is set to `255`. Else, if the `dns_record_type` field value is equal to `URI`, then the `network.dns.question.type` UDM field is set to `256`. Else, if the `dns_record_type` field value is equal to `CAA`, then the `network.dns.question.type` UDM field is set to `257`. Else, if the `dns_record_type` field value is equal to `AVC`, then the `network.dns.question.type` UDM field is set to `258`. Else, if the `dns_record_type` field value is equal to `DOA`, then the `network.dns.question.type` UDM field is set to `259`. Else, if the `dns_record_type` field value is equal to `AMTRELA`, then the `network.dns.question.type` UDM field is set to `260`. Else, if the `dns_record_type` field value is equal to `TA`, then the `network.dns.question.type` UDM field is set to `32768`. Else, if the `dns_record_type` field value is equal to `DLV`, then the `network.dns.question.type` UDM field is set to `32769`. |
| `dns_record_name` | `network.dns.questions.type` | If the `dns_record_name` field value is equal to `A`, then the `network.dns.question.type` UDM field is set to `1`. Else, if the `dns_record_name` field value is equal to `NS`, then the `network.dns.question.type` UDM field is set to `2`. Else, if the `dns_record_name` field value is equal to `MD`, then the `network.dns.question.type` UDM field is set to `3`. Else, if the `dns_record_name` field value is equal to `MF`, then the `network.dns.question.type` UDM field is set to `4`. Else, if the `dns_record_name` field value is equal to `CNAME`, then the `network.dns.question.type` UDM field is set to `5`. Else, if the `dns_record_name` field value is equal to `SOA`, then the `network.dns.question.type` UDM field is set to `6`. Else, if the `dns_record_name` field value is equal to `MB`, then the `network.dns.question.type` UDM field is set to `7`. Else, if the `dns_record_name` field value is equal to `MG`, then the `network.dns.question.type` UDM field is set to `8`. Else, if the `dns_record_name` field value is equal to `MR`, then the `network.dns.question.type` UDM field is set to `9`. Else, if the `dns_record_name` field value is equal to `NULL`, then the `network.dns.question.type` UDM field is set to `10`. Else, if the `dns_record_name` field value is equal to `WKS`, then the `network.dns.question.type` UDM field is set to `11`. Else, if the `dns_record_name` field value is equal to `PTR`, then the `network.dns.question.type` UDM field is set to `12`. Else, if the `dns_record_name` field value is equal to `HINFO`, then the `network.dns.question.type` UDM field is set to `13`. Else, if the `dns_record_name` field value is equal to `MINFO`, then the `network.dns.question.type` UDM field is set to `14`. Else, if the `dns_record_name` field value is equal to `MX`, then the `network.dns.question.type` UDM field is set to `15`. Else, if the `dns_record_name` field value is equal to `TXT`, then the `network.dns.question.type` UDM field is set to `16`. Else, if the `dns_record_name` field value is equal to `RP`, then the `network.dns.question.type` UDM field is set to `17`. Else, if the `dns_record_name` field value is equal to `AFSDB`, then the `network.dns.question.type` UDM field is set to `18`. Else, if the `dns_record_name` field value is equal to `X25`, then the `network.dns.question.type` UDM field is set to `19`. Else, if the `dns_record_name` field value is equal to `ISDN`, then the `network.dns.question.type` UDM field is set to `20`. Else, if the `dns_record_name` field value is equal to `RT`, then the `network.dns.question.type` UDM field is set to `21`. Else, if the `dns_record_name` field value is equal to `NSAP`, then the `network.dns.question.type` UDM field is set to `22`. Else, if the `dns_record_name` field value is equal to `NSAP-PT`, then the `network.dns.question`.type UDM field is se`t` to 23. Else, if the `dns_record_name` field value is equal to `SIG`, then the `network.dns.question.type` UDM field is set to `24`. Else, if the `dns_record_name` field value is equal to `KEY`, then the `network.dns.question.type` UDM field is set to `25`. Else, if the `dns_record_name` field value is equal to `PX`, then the `network.dns.question.type` UDM field is set to `26`. Else, if the `dns_record_name` field value is equal to `GPOS`, then the `network.dns.question.type` UDM field is set to `27`. Else, if the `dns_record_name` field value is equal to `AAAA`, then the `network.dns.question.type` UDM field is set to `28`. Else, if the `dns_record_name` field value is equal to `LOC`, then the `network.dns.question.type` UDM field is set to `29`. Else, if the `dns_record_name` field value is equal to `NXT`, then the `network.dns.question.type` UDM field is set to `30`. Else, if the `dns_record_name` field value is equal to `EID`, then the `network.dns.question.type` UDM field is set to `31`. Else, if the `dns_record_name` field value is equal to `NIMLOC`, then the `network.dns.question.type` UDM field is set to `32`. Else, if the `dns_record_name` field value is equal to `SRV`, then the `network.dns.question.type` UDM field is set to `33`. Else, if the `dns_record_name` field value is equal to `ATMA`, then the `network.dns.question.type` UDM field is set to `34`. Else, if the `dns_record_name` field value is equal to `NAPTR`, then the `network.dns.question.type` UDM field is set to `35`. Else, if the `dns_record_name` field value is equal to `KX`, then the `network.dns.question.type` UDM field is set to `36`. Else, if the `dns_record_name` field value is equal to `CERT`, then the `network.dns.question.type` UDM field is set to `37`. Else, if the `dns_record_name` field value is equal to `A6`, then the `network.dns.question.type` UDM field is set to `38`. Else, if the `dns_record_name` field value is equal to `DNAME`, then the `network.dns.question.type` UDM field is set to `39`. Else, if the `dns_record_name` field value is equal to `SINK`, then the `network.dns.question.type` UDM field is set to `40`. Else, if the `dns_record_name` field value is equal to `OPT`, then the `network.dns.question.type` UDM field is set to `41`. Else, if the `dns_record_name` field value is equal to `APL`, then the `network.dns.question.type` UDM field is set to `42`. Else, if the `dns_record_name` field value is equal to `DS`, then the `network.dns.question.type` UDM field is set to `43`. Else, if the `dns_record_name` field value is equal to `SSHFP`, then the `network.dns.question.type` UDM field is set to `44`. Else, if the `dns_record_name` field value is equal to `IPSECKE`, then the `network.dns.question.type` UDM field is set to `45`. Else, if the `dns_record_name` field value is equal to `RRSIG`, then the `network.dns.question.type` UDM field is set to `46`. Else, if the `dns_record_name` field value is equal to `NSEC`, then the `network.dns.question.type` UDM field is set to `47`. Else, if the `dns_record_name` field value is equal to `DNSKEY`, then the `network.dns.question.type` UDM field is set to `48`. Else, if the `dns_record_name` field value is equal to `DHCID`, then the `network.dns.question.type` UDM field is set to `49`. Else, if the `dns_record_name` field value is equal to `NSEC3`, then the `network.dns.question.type` UDM field is set to `50`. Else, if the `dns_record_name` field value is equal to `NSEC3PA`, then the `network.dns.question.type` UDM field is set to `51`. Else, if the `dns_record_name` field value is equal to `TLSA`, then the `network.dns.question.type` UDM field is set to `52`. Else, if the `dns_record_name` field value is equal to `SMIMEA`, then the `network.dns.question.type` UDM field is set to `53`. Else, if the `dns_record_name` field value is equal to `UNASSIG`, then the `network.dns.question.type` UDM field is set to `54`. Else, if the `dns_record_name` field value is equal to `HIP`, then the `network.dns.question.type` UDM field is set to `55`. Else, if the `dns_record_name` field value is equal to `NINFO`, then the `network.dns.question.type` UDM field is set to `56`. Else, if the `dns_record_name` field value is equal to `RKEY`, then the `network.dns.question.type` UDM field is set to `57`. Else, if the `dns_record_name` field value is equal to `TALINK`, then the `network.dns.question.type` UDM field is set to `58`. Else, if the `dns_record_name` field value is equal to `CDS`, then the `network.dns.question.type` UDM field is set to `59`. Else, if the `dns_record_name` field value is equal to `CDNSKEY`, then the `network.dns.question.type` UDM field is set to `60`. Else, if the `dns_record_name` field value is equal to `OPENPGP`, then the `network.dns.question.type` UDM field is set to `61`. Else, if the `dns_record_name` field value is equal to `CSYNC`, then the `network.dns.question.type` UDM field is set to `62`. Else, if the `dns_record_name` field value is equal to `ZONEMD`, then the `network.dns.question.type` UDM field is set to `63`. Else, if the `dns_record_name` field value is equal to `SVCB`, then the `network.dns.question.type` UDM field is set to `64`. Else, if the `dns_record_name` field value is equal to `HTTPS`, then the `network.dns.question.type` UDM field is set to `65`. Else, if the `dns_record_name` field value is equal to `SPF`, then the `network.dns.question.type` UDM field is set to `99`. Else, if the `dns_record_name` field value is equal to `UINFO`, then the `network.dns.question.type` UDM field is set to `100`. Else, if the `dns_record_name` field value is equal to `UID`, then the `network.dns.question.type` UDM field is set to `101`. Else, if the `dns_record_name` field value is equal to `GID`, then the `network.dns.question.type` UDM field is set to `102`. Else, if the `dns_record_name` field value is equal to `UNSPEC`, then the `network.dns.question.type` UDM field is set to `103`. Else, if the `dns_record_name` field value is equal to `NID`, then the `network.dns.question.type` UDM field is set to `104`. Else, if the `dns_record_name` field value is equal to `L32`, then the `network.dns.question.type` UDM field is set to `105`. Else, if the `dns_record_name` field value is equal to `L64`, then the `network.dns.question.type` UDM field is set to `106`. Else, if the `dns_record_name` field value is equal to `LP`, then the `network.dns.question.type` UDM field is set to `107`. Else, if the `dns_record_name` field value is equal to `EUI48`, then the `network.dns.question.type` UDM field is set to `108`. Else, if the `dns_record_name` field value is equal to `EUI64`, then the `network.dns.question.type` UDM field is set to `109`. Else, if the `dns_record_name` field value is equal to `TKEY`, then the `network.dns.question.type` UDM field is set to `249`. Else, if the `dns_record_name` field value is equal to `TSIG`, then the `network.dns.question.type` UDM field is set to `250`. Else, if the `dns_record_name` field value is equal to `IXFR`, then the `network.dns.question.type` UDM field is set to `251`. Else, if the `dns_record_name` field value is equal to `AXFR`, then the `network.dns.question.type` UDM field is set to `252`. Else, if the `dns_record_name` field value is equal to `MAILB`, then the `network.dns.question.type` UDM field is set to `253`. Else, if the `dns_record_name` field value is equal to `MAILA`, then the `network.dns.question.type` UDM field is set to `254`. Else, if the `dns_record_name` field value is equal to `ALL`, then the `network.dns.question.type` UDM field is set to `255`. Else, if the `dns_record_name` field value is equal to `URI`, then the `network.dns.question.type` UDM field is set to `256`. Else, if the `dns_record_name` field value is equal to `CAA`, then the `network.dns.question.type` UDM field is set to `257`. Else, if the `dns_record_name` field value is equal to `AVC`, then the `network.dns.question.type` UDM field is set to `258`. Else, if the `dns_record_name` field value is equal to `DOA`, then the `network.dns.question.type` UDM field is set to `259`. Else, if the `dns_record_name` field value is equal to `AMTRELA`, then the `network.dns.question.type` UDM field is set to `260`. Else, if the `dns_record_name` field value is equal to `TA`, then the `network.dns.question.type` UDM field is set to `32768`. Else, if the `dns_record_name` field value is equal to `DLV`, then the `network.dns.question.type` UDM field is set to `32769`. |
| `RemoteIP` | `principal.ip` | If the value of the `RemoteIP` field matches the regular expression ip, then the `principal.ip` UDM field is mapped to `RemoteIP`. Else, `principal.hostname` UDM field is mapped to `RemoteIP` |
|   | `principal.ip` | Grok: Extracted the `client` field from the raw log. If the value of the `client` field matches the regular expression ip, then the `principal.ip` UDM field is mapped to `client`. Else, `principal.hostname` UDM field is mapped to `client`. |
|   | `intermediary.hostname` | Grok: Extracted the `syslog_host` field from the raw log. If the value of the `client` field matches the regular expression syslog_host, then the `intermediary.hostname` UDM field is mapped to the `syslog_host`. |
| `SendReceiveIndicator` | `network.direction` | If the `SendReceiveIndicator` log field value is equal to `Snd`, then the `network.direction` UDM field is set to `OUTBOUND`. Else, if the `SendReceiveIndicator` log field value is equal to `Rcv`, then the `network.direction` UDM field is set to `INBOUND`. |
| `send_receive_indicator` | `network.direction` | Grok: Extracted the `send_receive_indicator` field from the raw log. If the `send_receive_indicator` field value is equal to `Snd`, then the `network.direction` UDM field is set to `OUTBOUND`. Else, if the `send_receive_indicator` field value is equal to `Rcv`, then the `network.direction` UDM field is set to `INBOUND`. |
| `Xid` | `network.dns.id` |   |
| `xid` | `network.dns.id` | Grok: Extracted the `xid` field from the raw log and then mapped the `xid` field to the `network.dns.id` UDM field. |
|   | `network.dns.answers.data` | Grok: Extracted the `DATA` field from the raw log and then mapped the `DATA` field to the `network.dns.answers.data` UDM field. |
|   | `network.dns.answers.type` | Grok: Extracted the `TYPE` field from the raw log and then mapped the `TYPE` field to the `network.dns.answers.type` UDM field. |
|   | `network.dns.answers.name` | Grok: Extracted the `Name` field from the raw log and then mapped the `Name` field to the `network.dns.answers.name` UDM field. |
|   | `network.dns.answers.ttl` | Grok: Extracted the `TTL` field from the raw log and then mapped the `TTL` field to the `network.dns.answers.ttl` UDM field. |
|   | `network.dns.answers.class` | Grok: Extracted the `CLASS` field from the raw log and then mapped the `CLASS` field to the `network.dns.answers.class` UDM field. |

### Legacy debug logs

> [!WARNING]
> **Deprecated:**
>
> The following `labels` fields for UDM nouns are deprecated: `about.labels`, `intermediary.labels`, `observer.labels`, `principal.labels`, `src.labels`, `security_result.about.labels`, and `target.labels`. For existing parsers, in addition to these UDM fields, the logs fields are also mapped to key/value `additional.fields` UDM fields. For new parsers, the key/value settings in `additional.fields` UDM fields are used instead of the deprecated `labels` UDM fields. We recommend that you update the existing rules to use the key/value settings in the `additional.fields` UDM fields instead of the deprecated `labels` UDM fields.

| **Original log field** | **UDM field** | **Note** |
|---|---|---|
| `BufLen` | `about.labels.key/value` (deprecated) | Grok: Extracted the `BufLen` field from the raw log and then mapped the `BufLen` field to the `about.labels` UDM field. |
| `BufLen` | `additional.fields` | Grok: Extracted the `BufLen` field from the raw log and then mapped the `BufLen` field to the `additional.fields` UDM field. |
| `client` | `principal.ip` | Grok: Extracted the `client` field from the raw log. If the value of the `client` field matches the regular expression ip, then the `principal.ip` UDM field is mapped to `client`. Else, `principal.hostname` UDM field is mapped to `client`. |
| `domain` | `network.dns.questions.name` `target.hostname` `target.asset.hostname` | Grok: Extracted the `domain` field from the raw log and then mapped the `domain` field to the `network.dns.questions.name, target.hostname and target.asset.hostname` UDM field. |
| `Expire` | `about.labels.key/value` (deprecated) | Grok: Extracted the `Expire` field from the raw log and then mapped the `Expire` field to the `about.labels` UDM field. |
| `Expire` | `additional.fields` | Grok: Extracted the `Expire` field from the raw log and then mapped the `Expire` field to the `additional.fields` UDM field. |
| `internal_packet_identifier` | `about.labels.key/value` (deprecated) | Grok: Extracted the `internal_packet_identifier` field from the raw log and then mapped the `internal_packet_identifier` field to the `about.labels` UDM field. |
| `internal_packet_identifier` | `additional.fields` | Grok: Extracted the `internal_packet_identifier` field from the raw log and then mapped the `internal_packet_identifier` field to the `additional.fields` UDM field. |
| `ip_protocol` | `network.ip_protocol` | Grok: Extracted the `ip_protocol` field from the raw log. If the `ip_protocol` field value is equal to `1` or `ICMP`, then the `network.ip_protocol` UDM field is set to `ICMP`. Else, if the `ip_protocol` field value is equal to `2` or `IGMP`, then the `network.ip_protocol` UDM field is set to `IGMP`. Else, if the `ip_protocol` field value is equal to `6` or `TCP`, then the `network.ip_protocol` UDM field is set to `TCP`. Else, if the `ip_protocol` field value is equal to `17` or `UDP`, then the `network.ip_protocol` UDM field is set to `UDP`. Else, if the `ip_protocol` field value is equal to `41` or `IP6IN4`, then the `network.ip_protocol` UDM field is set to `IP6IN4`. Else, if the `ip_protocol` field value is equal to `47` or `GRE`, then the `network.ip_protocol` UDM field is set to `GRE`. Else, if the `ip_protocol` field value is equal to `50` or `ESP`, then the `network.ip_protocol` UDM field is set to `ESP`. Else, if the `ip_protocol` field value is equal to `88` or `EIGRP`, then the `network.ip_protocol` UDM field is set to `EIGRP`. Else, if the `ip_protocol` field value is equal to `97` or `ETHERIP`, then the `network.ip_protocol` UDM field is set to `ETHERIP`. Else, if the `ip_protocol` field value is equal to `103` or `PIM`, then the `network.ip_protocol` UDM field is set to `PIM`. Else, if the `ip_protocol` field value is equal to `112` or `VRRP`, then the `network.ip_protocol` UDM field is set to `VRRP`. |
| `LogInfo` | `metadata.description` | Grok: Extracted the `LogInfo` field from the raw log and then mapped the `LogInfo` field to the `metadata.description` UDM field. |
| `opcode` | `network.dns.opcode` | Grok: Extracted the `opcode` field from the raw log. If the `opcode` field value is equal to `Q`, then the `network.dns.opcode` UDM field is set to `0`. Else, if the `opcode` field value is equal to `I`, then the `network.dns.opcode` UDM field is set to `1`. Else, if the `opcode` field value is equal to `S`, then the `network.dns.opcode` UDM field is set to `2`. Else, if the `opcode` field value is equal to `N`, then the `network.dns.opcode` UDM field is set to `4`. Else, if the `opcode` field value is equal to `U`, then the `network.dns.opcode` UDM field is set to `5`. |
| `PortNum` | `principal.port` | Grok: Extracted the `PortNum` field from the raw log and then mapped the `PortNum` field to the `principal.port` UDM field. |
| `Queued` | `about.labels.key/value` (deprecated) | Grok: Extracted the `Queued` field from the raw log and then mapped the `Queued` field to the `about.labels` UDM field. |
| `Queued` | `additional.fields` | Grok: Extracted the `Queued` field from the raw log and then mapped the `Queued` field to the `additional.fields` UDM field. |
| `req_or_resp` | `network.dns.response` | Grok: Extracted `req_or_resp` from the raw log, If the `req_or_resp` field value is equal to `R`, then the `network.dns.response` UDM field is set to `true`. Else, the `network.dns.response` UDM field is set to `false` |
| `send_receive_indicator` | `network.direction` | Grok: Extracted the `send_receive_indicator` field from the raw log. If the `send_receive_indicator` field value is equal to `Snd`, then the `network.direction` UDM field is set to `OUTBOUND`. Else, if the `send_receive_indicator` field value is equal to `Rcv`, then the `network.direction` UDM field is set to `INBOUND`. |
| `Socket` | `principal.labels.key/value` (deprecated) | Grok: Extracted the `Socket` field from the raw log and then mapped the `Socket` field to the `principal.labels` UDM field. |
| `Socket` | `additional.fields` | Grok: Extracted the `Socket` field from the raw log and then mapped the `Socket` field to the `additional.fields` UDM field. |
| `TimeQuery` | `about.labels.key/value` (deprecated) | Grok: Extracted the `TimeQuery` field from the raw log and then mapped the `TimeQuery` field to the `about.labels` UDM field. |
| `TimeQuery` | `additional.fields` | Grok: Extracted the `TimeQuery` field from the raw log and then mapped the `TimeQuery` field to the `additional.fields` UDM field. |
| `xid` | `network.dns.id` | Grok: Extracted the `xid` field from the raw log and then mapped the `xid` field to the `network.dns.id` UDM field. |
| `dns_record_type` | `additional.fields.key/value.string_value` `network.dns.questions.type` | Grok: Extracted the `dns_record_type` field from the raw log. If the `dns_record_type` field value is equal to `A`, then the `network.dns.question.type` UDM field is set to `1`. Else, if the `dns_record_type` field value is equal to `NS`, then the `network.dns.question.type` UDM field is set to `2`. Else, if the `dns_record_type` field value is equal to `MD`, then the `network.dns.question.type` UDM field is set to `3`. Else, if the `dns_record_type` field value is equal to `MF`, then the `network.dns.question.type` UDM field is set to `4`. Else, if the `dns_record_type` field value is equal to `CNAME`, then the `network.dns.question.type` UDM field is set to `5`. Else, if the `dns_record_type` field value is equal to `SOA`, then the `network.dns.question.type` UDM field is set to `6`. Else, if the `dns_record_type` field value is equal to `MB`, then the `network.dns.question.type` UDM field is set to `7`. Else, if the `dns_record_type` field value is equal to `MG`, then the `network.dns.question.type` UDM field is set to `8`. Else, if the `dns_record_type` field value is equal to `MR`, then the `network.dns.question.type` UDM field is set to `9`. Else, if the `dns_record_type` field value is equal to `NULL`, then the `network.dns.question.type` UDM field is set to `10`. Else, if the `dns_record_type` field value is equal to `WKS`, then the `network.dns.question.type` UDM field is set to `11`. Else, if the `dns_record_type` field value is equal to `PTR`, then the `network.dns.question.type` UDM field is set to `12`. Else, if the `dns_record_type` field value is equal to `HINFO`, then the `network.dns.question.type` UDM field is set to `13`. Else, if the `dns_record_type` field value is equal to `MINFO`, then the `network.dns.question.type` UDM field is set to `14`. Else, if the `dns_record_type` field value is equal to `MX`, then the `network.dns.question.type` UDM field is set to `15`. Else, if the `dns_record_type` field value is equal to `TXT`, then the `network.dns.question.type` UDM field is set to `16`. Else, if the `dns_record_type` field value is equal to `RP`, then the `network.dns.question.type` UDM field is set to `17`. Else, if the `dns_record_type` field value is equal to `AFSDB`, then the `network.dns.question.type` UDM field is set to `18`. Else, if the `dns_record_type` field value is equal to `X25`, then the `network.dns.question.type` UDM field is set to `19`. Else, if the `dns_record_type` field value is equal to `ISDN`, then the `network.dns.question.type` UDM field is set to `20`. Else, if the `dns_record_type` field value is equal to `RT`, then the `network.dns.question.type` UDM field is set to `21`. Else, if the `dns_record_type` field value is equal to `NSAP`, then the `network.dns.question.type` UDM field is set to `22`. Else, if the `dns_record_type` field value is equal to `NSAP-PT`, then the `network.dns.question`.type UDM field is set` to` 23. Else, if the `dns_record_type` field value is equal to `SIG`, then the `network.dns.question.type` UDM field is set to `24`. Else, if the `dns_record_type` field value is equal to `KEY`, then the `network.dns.question.type` UDM field is set to `25`. Else, if the `dns_record_type` field value is equal to `PX`, then the `network.dns.question.type` UDM field is set to `26`. Else, if the `dns_record_type` field value is equal to `GPOS`, then the `network.dns.question.type` UDM field is set to `27`. Else, if the `dns_record_type` field value is equal to `AAAA`, then the `network.dns.question.type` UDM field is set to `28`. Else, if the `dns_record_type` field value is equal to `LOC`, then the `network.dns.question.type` UDM field is set to `29`. Else, if the `dns_record_type` field value is equal to `NXT`, then the `network.dns.question.type` UDM field is set to `30`. Else, if the `dns_record_type` field value is equal to `EID`, then the `network.dns.question.type` UDM field is set to `31`. Else, if the `dns_record_type` field value is equal to `NIMLOC`, then the `network.dns.question.type` UDM field is set to `32`. Else, if the `dns_record_type` field value is equal to `SRV`, then the `network.dns.question.type` UDM field is set to `33`. Else, if the `dns_record_type` field value is equal to `ATMA`, then the `network.dns.question.type` UDM field is set to `34`. Else, if the `dns_record_type` field value is equal to `NAPTR`, then the `network.dns.question.type` UDM field is set to `35`. Else, if the `dns_record_type` field value is equal to `KX`, then the `network.dns.question.type` UDM field is set to `36`. Else, if the `dns_record_type` field value is equal to `CERT`, then the `network.dns.question.type` UDM field is set to `37`. Else, if the `dns_record_type` field value is equal to `A6`, then the `network.dns.question.type` UDM field is set to `38`. Else, if the `dns_record_type` field value is equal to `DNAME`, then the `network.dns.question.type` UDM field is set to `39`. Else, if the `dns_record_type` field value is equal to `SINK`, then the `network.dns.question.type` UDM field is set to `40`. Else, if the `dns_record_type` field value is equal to `OPT`, then the `network.dns.question.type` UDM field is set to `41`. Else, if the `dns_record_type` field value is equal to `APL`, then the `network.dns.question.type` UDM field is set to `42`. Else, if the `dns_record_type` field value is equal to `DS`, then the `network.dns.question.type` UDM field is set to `43`. Else, if the `dns_record_type` field value is equal to `SSHFP`, then the `network.dns.question.type` UDM field is set to `44`. Else, if the `dns_record_type` field value is equal to `IPSECKE`, then the `network.dns.question.type` UDM field is set to `45`. Else, if the `dns_record_type` field value is equal to `RRSIG`, then the `network.dns.question.type` UDM field is set to `46`. Else, if the `dns_record_type` field value is equal to `NSEC`, then the `network.dns.question.type` UDM field is set to `47`. Else, if the `dns_record_type` field value is equal to `DNSKEY`, then the `network.dns.question.type` UDM field is set to `48`. Else, if the `dns_record_type` field value is equal to `DHCID`, then the `network.dns.question.type` UDM field is set to `49`. Else, if the `dns_record_type` field value is equal to `NSEC3`, then the `network.dns.question.type` UDM field is set to `50`. Else, if the `dns_record_type` field value is equal to `NSEC3PA`, then the `network.dns.question.type` UDM field is set to `51`. Else, if the `dns_record_type` field value is equal to `TLSA`, then the `network.dns.question.type` UDM field is set to `52`. Else, if the `dns_record_type` field value is equal to `SMIMEA`, then the `network.dns.question.type` UDM field is set to `53`. Else, if the `dns_record_type` field value is equal to `UNASSIG`, then the `network.dns.question.type` UDM field is set to `54`. Else, if the `dns_record_type` field value is equal to `HIP`, then the `network.dns.question.type` UDM field is set to `55`. Else, if the `dns_record_type` field value is equal to `NINFO`, then the `network.dns.question.type` UDM field is set to `56`. Else, if the `dns_record_type` field value is equal to `RKEY`, then the `network.dns.question.type` UDM field is set to `57`. Else, if the `dns_record_type` field value is equal to `TALINK`, then the `network.dns.question.type` UDM field is set to `58`. Else, if the `dns_record_type` field value is equal to `CDS`, then the `network.dns.question.type` UDM field is set to `59`. Else, if the `dns_record_type` field value is equal to `CDNSKEY`, then the `network.dns.question.type` UDM field is set to `60`. Else, if the `dns_record_type` field value is equal to `OPENPGP`, then the `network.dns.question.type` UDM field is set to `61`. Else, if the `dns_record_type` field value is equal to `CSYNC`, then the `network.dns.question.type` UDM field is set to `62`. Else, if the `dns_record_type` field value is equal to `ZONEMD`, then the `network.dns.question.type` UDM field is set to `63`. Else, if the `dns_record_type` field value is equal to `SVCB`, then the `network.dns.question.type` UDM field is set to `64`. Else, if the `dns_record_type` field value is equal to `HTTPS`, then the `network.dns.question.type` UDM field is set to `65`. Else, if the `dns_record_type` field value is equal to `SPF`, then the `network.dns.question.type` UDM field is set to `99`. Else, if the `dns_record_type` field value is equal to `UINFO`, then the `network.dns.question.type` UDM field is set to `100`. Else, if the `dns_record_type` field value is equal to `UID`, then the `network.dns.question.type` UDM field is set to `101`. Else, if the `dns_record_type` field value is equal to `GID`, then the `network.dns.question.type` UDM field is set to `102`. Else, if the `dns_record_type` field value is equal to `UNSPEC`, then the `network.dns.question.type` UDM field is set to `103`. Else, if the `dns_record_type` field value is equal to `NID`, then the `network.dns.question.type` UDM field is set to `104`. Else, if the `dns_record_type` field value is equal to `L32`, then the `network.dns.question.type` UDM field is set to `105`. Else, if the `dns_record_type` field value is equal to `L64`, then the `network.dns.question.type` UDM field is set to `106`. Else, if the `dns_record_type` field value is equal to `LP`, then the `network.dns.question.type` UDM field is set to `107`. Else, if the `dns_record_type` field value is equal to `EUI48`, then the `network.dns.question.type` UDM field is set to `108`. Else, if the `dns_record_type` field value is equal to `EUI64`, then the `network.dns.question.type` UDM field is set to `109`. Else, if the `dns_record_type` field value is equal to `TKEY`, then the `network.dns.question.type` UDM field is set to `249`. Else, if the `dns_record_type` field value is equal to `TSIG`, then the `network.dns.question.type` UDM field is set to `250`. Else, if the `dns_record_type` field value is equal to `IXFR`, then the `network.dns.question.type` UDM field is set to `251`. Else, if the `dns_record_type` field value is equal to `AXFR`, then the `network.dns.question.type` UDM field is set to `252`. Else, if the `dns_record_type` field value is equal to `MAILB`, then the `network.dns.question.type` UDM field is set to `253`. Else, if the `dns_record_type` field value is equal to `MAILA`, then the `network.dns.question.type` UDM field is set to `254`. Else, if the `dns_record_type` field value is equal to `ALL`, then the `network.dns.question.type` UDM field is set to `255`. Else, if the `dns_record_type` field value is equal to `URI`, then the `network.dns.question.type` UDM field is set to `256`. Else, if the `dns_record_type` field value is equal to `CAA`, then the `network.dns.question.type` UDM field is set to `257`. Else, if the `dns_record_type` field value is equal to `AVC`, then the `network.dns.question.type` UDM field is set to `258`. Else, if the `dns_record_type` field value is equal to `DOA`, then the `network.dns.question.type` UDM field is set to `259`. Else, if the `dns_record_type` field value is equal to `AMTRELA`, then the `network.dns.question.type` UDM field is set to `260`. Else, if the `dns_record_type` field value is equal to `TA`, then the `network.dns.question.type` UDM field is set to `32768`. Else, if the `dns_record_type` field value is equal to `DLV`, then the `network.dns.question.type` UDM field is set to `32769`. |
| `CLASS` | `network.dns.additional.class` | `PREREQUISITE SECTION CLASS` |
| `DATA` | `network.dns.additional.data` | `PREREQUISITE SECTION DATA` |
| `Name` | `network.dns.additional.name` | `PREREQUISITE SECTION Name` |
| `TTL` | `network.dns.additional.ttl` | `PREREQUISITE SECTION TTL` |
| `TYPE` | `network.dns.additional.type` | `PREREQUISITE SECTION TYPE` |
| `Flags` | `additional.fields.key/value.string_value` | Grok: Extracted the `Flags` field from the raw log and then mapped the `Flags` field to the `additional.fields.key/value.string_value` UDM field. |
| `CLASS` | `network.dns.additional.class` | `UPDATE SECTION CLASS` |
| `DATA` | `network.dns.additional.data` | `UPDATE SECTION DATA` |
| `Name` | `network.dns.additional.name` | `UPDATE SECTION Name` |
| `TTL` | `network.dns.additional.ttl` | `UPDATE SECTION TTL` |
| `TYPE` | `network.dns.additional.type` | `UPDATE SECTION TYPE` |
| `ZCLASS` | `network.dns.additional.class` | `ZONE SECTION ZCLASS` |
| `Name` | `network.dns.additional.name` | `ZONE SECTION Name` |
| `ZTYPE` | `network.dns.additional.type` | `ZONE SECTION ZTYPE` |
| `QR` | `additional.fields.key/value.string_value` |   |
| `OPCODE` | `additional.fields.key/value.string_value` |   |
| `AA` | `additional.fields.key/value.string_value` |   |
| `TC` | `additional.fields.key/value.string_value` |   |
| `RD` | `additional.fields.key/value.string_value` |   |
| `RA` | `additional.fields.key/value.string_value` |   |
| `Z` | `additional.fields.key/value.string_value` |   |
| `CD` | `additional.fields.key/value.string_value` |   |
| `AD` | `additional.fields.key/value.string_value` |   |
| `RCODE` | `additional.fields.key/value.string_value` |   |
| `ZCOUNT` | `additional.fields.key/value.string_value` |   |
| `PRECOUNT` | `additional.fields.key/value.string_value` |   |
| `ARCOUNT` | `additional.fields.key/value.string_value` |   |
| `UPCOUNT` | `additional.fields.key/value.string_value` |   |
| `QCOUNT` | `additional.fields.key/value.string_value` |   |
| `ACOUNT` | `additional.fields.key/value.string_value` |   |
| `NSCOUNT` | `additional.fields.key/value.string_value` |   |
| `host_name` | `intermediary.hostname` | Grok: Extracted the `host_name` field from the raw log and then mapped the `host_name` field to the `intermediary.hostname` UDM field. |
| `os_type` | `intermediary.asset.platform_software.platform` | Grok: Extracted the `os_type` field from the raw log. If the `os_type` extracted field value matches the regular expression pattern `(?i)windows`, then the `intermediary.asset.platform_software.platform` UDM field is set to `WINDOWS`. Else, if the `os_type` extracted field value matches the regular expression pattern `(?i)linux`, then the `intermediary.asset.platform_software.platform` UDM field is set to `LINUX`. Else, if the `os_type` extracted field is *not* empty, then the `os_type` extracted field is mapped with the `intermediary.asset.attribute.labels` UDM field. |

### Other logs

| **Original log field** | **UDM field** | **Note** |
|---|---|---|
|   | `network.dns.questions.name, target.hostname` | Grok: Extracted the `record_name` field from the raw log and then mapped the `record_name` field to the `network.dns.questions.name and target.hostname` UDM field. |
|   | `network.dns.questions.type` | Grok: Extracted the `record_type` field from the raw log. If the `record_type` field value is equal to `A`, then the `network.dns.question.type` UDM field is set to `1`. Else, if the `record_type` field value is equal to `NS`, then the `network.dns.question.type` UDM field is set to `2`. Else, if the `record_type` field value is equal to `MD`, then the `network.dns.question.type` UDM field is set to `3`. Else, if the `record_type` field value is equal to `MF`, then the `network.dns.question.type` UDM field is set to `4`. Else, if the `record_type` field value is equal to `CNAME`, then the `network.dns.question.type` UDM field is set to `5`. Else, if the `record_type` field value is equal to `SOA`, then the `network.dns.question.type` UDM field is set to `6`. Else, if the `record_type` field value is equal to `MB`, then the `network.dns.question.type` UDM field is set to `7`. Else, if the `record_type` field value is equal to `MG`, then the `network.dns.question.type` UDM field is set to `8`. Else, if the `record_type` field value is equal to `MR`, then the `network.dns.question.type` UDM field is set to `9`. Else, if the `record_type` field value is equal to `NULL`, then the `network.dns.question.type` UDM field is set to `10`. Else, if the `record_type` field value is equal to `WKS`, then the `network.dns.question.type` UDM field is set to `11`. Else, if the `record_type` field value is equal to `PTR`, then the `network.dns.question.type` UDM field is set to `12`. Else, if the `record_type` field value is equal to `HINFO`, then the `network.dns.question.type` UDM field is set to `13`. Else, if the `record_type` field value is equal to `MINFO`, then the `network.dns.question.type` UDM field is set to `14`. Else, if the `record_type` field value is equal to `MX`, then the `network.dns.question.type` UDM field is set to `15`. Else, if the `record_type` field value is equal to `TXT`, then the `network.dns.question.type` UDM field is set to `16`. Else, if the `record_type` field value is equal to `RP`, then the `network.dns.question.type` UDM field is set to `17`. Else, if the `record_type` field value is equal to `AFSDB`, then the `network.dns.question.type` UDM field is set to `18`. Else, if the `record_type` field value is equal to `X25`, then the `network.dns.question.type` UDM field is set to `19`. Else, if the `record_type` field value is equal to `ISDN`, then the `network.dns.question.type` UDM field is set to `20`. Else, if the `record_type` field value is equal to `RT`, then the `network.dns.question.type` UDM field is set to `21`. Else, if the `record_type` field value is equal to `NSAP`, then the `network.dns.question.type` UDM field is set to `22`. Else, if the `record_type` field value is equal to `NSAP-PT`, then the `network.dns.question`.type UDM field is se`t` to 23. Else, if the `record_type` field value is equal to `SIG`, then the `network.dns.question.type` UDM field is set to `24`. Else, if the `record_type` field value is equal to `KEY`, then the `network.dns.question.type` UDM field is set to `25`. Else, if the `record_type` field value is equal to `PX`, then the `network.dns.question.type` UDM field is set to `26`. Else, if the `record_type` field value is equal to `GPOS`, then the `network.dns.question.type` UDM field is set to `27`. Else, if the `record_type` field value is equal to `AAAA`, then the `network.dns.question.type` UDM field is set to `28`. Else, if the `record_type` field value is equal to `LOC`, then the `network.dns.question.type` UDM field is set to `29`. Else, if the `record_type` field value is equal to `NXT`, then the `network.dns.question.type` UDM field is set to `30`. Else, if the `record_type` field value is equal to `EID`, then the `network.dns.question.type` UDM field is set to `31`. Else, if the `record_type` field value is equal to `NIMLOC`, then the `network.dns.question.type` UDM field is set to `32`. Else, if the `record_type` field value is equal to `SRV`, then the `network.dns.question.type` UDM field is set to `33`. Else, if the `record_type` field value is equal to `ATMA`, then the `network.dns.question.type` UDM field is set to `34`. Else, if the `record_type` field value is equal to `NAPTR`, then the `network.dns.question.type` UDM field is set to `35`. Else, if the `record_type` field value is equal to `KX`, then the `network.dns.question.type` UDM field is set to `36`. Else, if the `record_type` field value is equal to `CERT`, then the `network.dns.question.type` UDM field is set to `37`. Else, if the `record_type` field value is equal to `A6`, then the `network.dns.question.type` UDM field is set to `38`. Else, if the `record_type` field value is equal to `DNAME`, then the `network.dns.question.type` UDM field is set to `39`. Else, if the `record_type` field value is equal to `SINK`, then the `network.dns.question.type` UDM field is set to `40`. Else, if the `record_type` field value is equal to `OPT`, then the `network.dns.question.type` UDM field is set to `41`. Else, if the `record_type` field value is equal to `APL`, then the `network.dns.question.type` UDM field is set to `42`. Else, if the `record_type` field value is equal to `DS`, then the `network.dns.question.type` UDM field is set to `43`. Else, if the `record_type` field value is equal to `SSHFP`, then the `network.dns.question.type` UDM field is set to `44`. Else, if the `record_type` field value is equal to `IPSECKE`, then the `network.dns.question.type` UDM field is set to `45`. Else, if the `record_type` field value is equal to `RRSIG`, then the `network.dns.question.type` UDM field is set to `46`. Else, if the `record_type` field value is equal to `NSEC`, then the `network.dns.question.type` UDM field is set to `47`. Else, if the `record_type` field value is equal to `DNSKEY`, then the `network.dns.question.type` UDM field is set to `48`. Else, if the `record_type` field value is equal to `DHCID`, then the `network.dns.question.type` UDM field is set to `49`. Else, if the `record_type` field value is equal to `NSEC3`, then the `network.dns.question.type` UDM field is set to `50`. Else, if the `record_type` field value is equal to `NSEC3PA`, then the `network.dns.question.type` UDM field is set to `51`. Else, if the `record_type` field value is equal to `TLSA`, then the `network.dns.question.type` UDM field is set to `52`. Else, if the `record_type` field value is equal to `SMIMEA`, then the `network.dns.question.type` UDM field is set to `53`. Else, if the `record_type` field value is equal to `UNASSIG`, then the `network.dns.question.type` UDM field is set to `54`. Else, if the `record_type` field value is equal to `HIP`, then the `network.dns.question.type` UDM field is set to `55`. Else, if the `record_type` field value is equal to `NINFO`, then the `network.dns.question.type` UDM field is set to `56`. Else, if the `record_type` field value is equal to `RKEY`, then the `network.dns.question.type` UDM field is set to `57`. Else, if the `record_type` field value is equal to `TALINK`, then the `network.dns.question.type` UDM field is set to `58`. Else, if the `record_type` field value is equal to `CDS`, then the `network.dns.question.type` UDM field is set to `59`. Else, if the `record_type` field value is equal to `CDNSKEY`, then the `network.dns.question.type` UDM field is set to `60`. Else, if the `record_type` field value is equal to `OPENPGP`, then the `network.dns.question.type` UDM field is set to `61`. Else, if the `record_type` field value is equal to `CSYNC`, then the `network.dns.question.type` UDM field is set to `62`. Else, if the `record_type` field value is equal to `ZONEMD`, then the `network.dns.question.type` UDM field is set to `63`. Else, if the `record_type` field value is equal to `SVCB`, then the `network.dns.question.type` UDM field is set to `64`. Else, if the `record_type` field value is equal to `HTTPS`, then the `network.dns.question.type` UDM field is set to `65`. Else, if the `record_type` field value is equal to `SPF`, then the `network.dns.question.type` UDM field is set to `99`. Else, if the `record_type` field value is equal to `UINFO`, then the `network.dns.question.type` UDM field is set to `100`. Else, if the `record_type` field value is equal to `UID`, then the `network.dns.question.type` UDM field is set to `101`. Else, if the `record_type` field value is equal to `GID`, then the `network.dns.question.type` UDM field is set to `102`. Else, if the `record_type` field value is equal to `UNSPEC`, then the `network.dns.question.type` UDM field is set to `103`. Else, if the `record_type` field value is equal to `NID`, then the `network.dns.question.type` UDM field is set to `104`. Else, if the `record_type` field value is equal to `L32`, then the `network.dns.question.type` UDM field is set to `105`. Else, if the `record_type` field value is equal to `L64`, then the `network.dns.question.type` UDM field is set to `106`. Else, if the `record_type` field value is equal to `LP`, then the `network.dns.question.type` UDM field is set to `107`. Else, if the `record_type` field value is equal to `EUI48`, then the `network.dns.question.type` UDM field is set to `108`. Else, if the `record_type` field value is equal to `EUI64`, then the `network.dns.question.type` UDM field is set to `109`. Else, if the `record_type` field value is equal to `TKEY`, then the `network.dns.question.type` UDM field is set to `249`. Else, if the `record_type` field value is equal to `TSIG`, then the `network.dns.question.type` UDM field is set to `250`. Else, if the `record_type` field value is equal to `IXFR`, then the `network.dns.question.type` UDM field is set to `251`. Else, if the `record_type` field value is equal to `AXFR`, then the `network.dns.question.type` UDM field is set to `252`. Else, if the `record_type` field value is equal to `MAILB`, then the `network.dns.question.type` UDM field is set to `253`. Else, if the `record_type` field value is equal to `MAILA`, then the `network.dns.question.type` UDM field is set to `254`. Else, if the `record_type` field value is equal to `ALL`, then the `network.dns.question.type` UDM field is set to `255`. Else, if the `record_type` field value is equal to `URI`, then the `network.dns.question.type` UDM field is set to `256`. Else, if the `record_type` field value is equal to `CAA`, then the `network.dns.question.type` UDM field is set to `257`. Else, if the `record_type` field value is equal to `AVC`, then the `network.dns.question.type` UDM field is set to `258`. Else, if the `record_type` field value is equal to `DOA`, then the `network.dns.question.type` UDM field is set to `259`. Else, if the `record_type` field value is equal to `AMTRELA`, then the `network.dns.question.type` UDM field is set to `260`. Else, if the `record_type` field value is equal to `TA`, then the `network.dns.question.type` UDM field is set to `32768`. Else, if the `record_type` field value is equal to `DLV`, then the `network.dns.question.type` UDM field is set to `32769`. |
| `client` | `principal.ip` | Grok: Extracted the `client` field from the raw log. If the value of the `client` field matches the regular expression ip, then the `principal.ip` UDM field is mapped to `client`. Else, `principal.hostname` UDM field is mapped to client. |
|   | `intermediary.hostname` | Grok: Extracted the `syslog_host` field from the raw log. If the value of the `client` field matches the regular expression ip, then the `intermediary.hostname` UDM field is mapped to `the` syslog_host. |
|   | `network.dns.questions.class` | Grok: Extracted the `qclass` field from the raw log. If the `qclass` field value is equal to `IN`, then `network.dns.questions.class` is set to `1`. Else, if the `qclass` field value is equal to `CH`, then `network.dns.questions.class` is set to `3`. Else, if the `qclass` field value is equal to `HS`, then `network.dns.questions.class` is set to `4`. |

## Field mapping reference: Event ID to UDM event type

This section describes how the parser maps Event Ids to UDM event_types.
In general, events are mapped to the NETWORK_DNS metadata.event_type,
except for Event IDs in the following section.

> [!NOTE]
> **Note:** The % values (e.g. %1, %2, %3, %{EventID}) are variable placeholders.

| **Event Id** | **Event Text** | **UDM Event Type** | **Notes** |
|---|---|---|---|
| `275` | XFR_NOTIFY_ACK_IN: Source=%1; InterfaceIP=%2; PacketData=%4 | `GENERIC_EVENT` |   |
| `276` | IXFR_RESP_OUT: TCP=%1; InterfaceIP=%2; Destination=%3; QNAME=%4; XID=%5; ZoneScope=%6; Zone=%7; RCODE=%8; PacketData=%10 | `GENERIC_EVENT` |   |
| `512` |   | `SETTING_CREATION` |   |
| `513` | The zone %1 was deleted. | `SETTING_DELETION` |   |
| `514` | The zone %1 was updated. The %2 setting has been set to %3. | `SETTING_MODIFICATION` |   |
| `515` | A resource record of type %1, name %2, TTL %3 and RDATA %5 was created in scope %7 of zone %6. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `516` | A resource record of type %1, name %2 and RDATA %5 was deleted from scope %7 of zone %6. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `517` | All resource records of type %1, name %2 were deleted from scope %4 of zone %3. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `518` | All resource records at Node name %1 were deleted from scope %3 of zone %2. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `519` | A resource record of type %1, name %2, TTL %3 and RDATA %5 was created in scope %7 of zone %6 via dynamic update from IP Address %8. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `520` | A resource record of type %1, name %2 and RDATA %5 was deleted from scope %7 of zone %6 via dynamic update from IP Address %8. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `521` | A resource record of type %1, name %2, TTL %3 and RDATA %5 was scavenged from scope %7 of zone %6. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `522` | The scope %1 was created in zone %2. | `SETTING_CREATION` |   |
| `523` | The scope %1 was deleted in zone %2. | `SETTING_DELETION` |   |
| `525` | The zone %1 was signed with following properties: DenialOfExistence=%2; DistributeTrustAnchor=%3; DnsKeyRecordSetTtl=%4; DSRecordGenerationAlgorithm=%5; DSRecordSetTtl=%6; EnableRfc5011KeyRollover=%7; IsKeyMasterServer=%8; KeyMasterServer=%9; NSec3HashAlgorithm=%10; NSec3Iterations=%11; NSec3OptOut=%12; NSec3RandomSaltLength=%13; NSec3UserSalt=%14; ParentHasSecureDelegation=%15; PropagationTime=%16; SecureDelegationPollingPeriod=%17; SignatureInceptionOffset=%18. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `526` | The zone %1 was unsigned. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `527` | The zone %1 was re-signed with following properties: DenialOfExistence=%2; DistributeTrustAnchor=%3; DnsKeyRecordSetTtl=%4; DSRecordGenerationAlgorithm=%5; DSRecordSetTtl=%6; EnableRfc5011KeyRollover=%7; IsKeyMasterServer=%8; KeyMasterServer=%9; NSec3HashAlgorithm=%10; NSec3Iterations=%11; NSec3OptOut=%12; NSec3RandomSaltLength=%13; NSec3UserSalt=%14; ParentHasSecureDelegation=%15; PropagationTime=%16; SecureDelegationPollingPeriod=%17; SignatureInceptionOffset=%18. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `528` | Rollover was started on the type %1 with GUID %2 of zone %3. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `529` | Rollover was completed on the type %1 with GUID %2 of zone %3. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `530` | The type %1 with GUID %2 of zone %3 was marked for retiral. The key will be removed after the rollover completion. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `531` | Manual rollover was triggered on the type %1 with GUID %2 of zone %3. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `533` | The keys signing key with GUID %1 on zone %2 that was waiting for a Delegation Signer(DS) update on the parent has been forced to move to rollover completion. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `534` | DNSSEC setting metadata was exported %1 key signing key metadata from zone %2. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `535` | DNSSEC setting metadata was imported on zone %1. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `536` | A record of type %1, QNAME %2 was purged from scope %3 in cache. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `537` | The forwarder list on scope %2 has been reset to %1. | `SETTING_MODIFICATION` | `target.resource.name` is set to "`Forwarder list on scope: %{scope_name}`" |
| `540` | The root hints have been modified. | `SETTING_MODIFICATION` | `target.resource.name` populated with text "`Root hints`" |
| `541` | The setting %1 on scope %2 has been set to %3. | `SETTING_MODIFICATION` |   |
| `542` | The scope %1 of DNS server was created. | `SETTING_CREATION` |   |
| `543` | The scope %1 of DNS server was deleted. | `SETTING_DELETION` |   |
| `544` | The DNSKEY with Key Protocol %2, Base64 Data %4 and Crypto Algorithm %5 has been added at the trust point %1. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `545` | The DS with Key Tag: %2, Digest Type: %3, Digest: %5 and Crypto Algorithm: %6 has been added at the trust point %1. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `546` | The trust point at %1 of type %2 has been removed. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `547` | The trust anchor for the root zone has been added. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `548` | A request to restart the DNS server service has been received. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `549` | The debug logs have been cleared from %1 on DNS server. | `SYSTEM_AUDIT_LOG_WIPE` |   |
| `550` | The in-memory contents of all the zones on DNS server have been flushed to their respective files. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `551` | All the statistical data for the DNS server has been cleared. | `SYSTEM_AUDIT_LOG_WIPE` |   |
| `552` | A resource record scavenging cycle has been started on the DNS Server. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `553` | %1 | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `554` | The resource record scavenging cycle has been terminated on the DNS Server. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `555` | The DNS server has been prepared for demotion by removing references to it from all zones stored in the Active Directory. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `556` | The information about the root hints on the DNS server has been written back to the persistent storage. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `557` | The addresses on which DNS server will listen has been changed to %1. | `SETTING_MODIFICATION` | `target.resource.name` populated with text "`Listen Addresses`" |
| `558` | An immediate RFC 5011 active refresh has been scheduled for all trust points. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `559` | The zone %1 is paused. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `560` | The zone %1 is resumed. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `561` | The data for zone %1 has been reloaded from %2. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `562` | The data for zone %1 has been refreshed from the master server %2. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| 563 | The secondary zone %1 has been expired and new data has been requested from the master server %2. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `564` | The zone %1 has been reloaded from the Active Directory. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `565` | The content of the zone %1 has been written to the disk and the notification has been sent to all the notify servers. | `SETTING_MODIFICATION` |   |
| `566` | All DNS records at the node %1 in the zone %2 will have their aging time stamp set to the current time.%3 | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `567` | The Active Directory-integrated zone %1 has been updated. Only %2 can run scavenging. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `568` | The key master role for zone %1 has been %2.%3 | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `569` | A %1 singing key (%2) descriptor has been added on the zone %3 with following properties: KeyId=%4; KeyType=%5; CurrentState=%6; KeyStorageProvider=%7; StoreKeysInAD=%8; CryptoAlgorithm=%9; KeyLength=%10; DnsKeySignatureValidityPeriod=%11; DSSignatureValidityPeriod=%12; ZoneSignatureValidityPeriod=%13; InitialRolloverOffset=%14; RolloverPeriod=%15; RolloverType=%16; NextRolloverAction=%17; LastRolloverTime=%18; NextRolloverTime=%19; CurrentRolloverStatus=%20; ActiveKey=%21; StandbyKey=%22; NextKey=%23. The zone will be resigned with the %2 generated with these properties. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `570` | A %1 singing key (%2) descriptor with GUID %3 has been updated on the zone %4. The properties of this %2 descriptor have been set to: KeyId=%5; KeyType=%6; CurrentState=%7; KeyStorageProvider=%8; StoreKeysInAD=%9; CryptoAlgorithm=%10; KeyLength=%11; DnsKeySignatureValidityPeriod=%12; DSSignatureValidityPeriod=%13; ZoneSignatureValidityPeriod=%14; InitialRolloverOffset=%15; RolloverPeriod=%16; RolloverType=%17; NextRolloverAction=%18; LastRolloverTime=%19; NextRolloverTime=%20; CurrentRolloverStatus=%21; ActiveKey=%22; StandbyKey=%23; NextKey=%24. The zone will be resigned with the %2 generated with these properties. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `571` | A %1 singing key (%2) descriptor %4 has been removed from the zone %3. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `572` | The state of the %1 signing key (%2) %3 has been modified on zone %4. The new active key is %5, standby key is %6 and next key is %7. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `573` | A delegation for %1 in the scope %2 of zone %3 with the name server %4 has been added. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `574` | The client subnet record with name %1 value %2 has been added to the client subnet map. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `575` | The client subnet record with name %1 has been deleted from the client subnet map. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `576` | The client subnet record with name %1 has been updated from the client subnet map. The new client subnets that it refers to are %2. | `SYSTEM_AUDIT_LOG_UNCATEGORIZED` |   |
| `577` | A server level policy %6 for %1 has been created on server %2 with following properties: ProcessingOrder:%3; Criteria:%4; Action:%5. | `SETTING_CREATION` |   |
| `578` | A zone level policy %8 for %1 has been created on zone %6 on server %2 with following properties: ProcessingOrder:%3; Criteria:%4; Action:%5; Scopes:%7. | `SETTING_CREATION` |   |
| `579` | A forwarding policy %6 has been created on server %2 with following properties: ProcessingOrder:%3; Criteria:%4; Action:%5; Scope:%1. | `SETTING_CREATION` |   |
| `580` | The server level policy %1 has been deleted from server %2. | `SETTING_DELETION` |   |
| `581` | The zone level policy %1 has been deleted from zone %3 on server %2. | `SETTING_DELETION` |   |
| `582` | The forwarding policy %1 has been deleted from server %2. | `SETTING_DELETION` |   |

## UDM mapping delta

### UDM Mapping Delta reference: WINDOWS DNS

> [!NOTE]
> **Note:** In this delta, "Old UDM Mapping" refers to the previously published mapping for the `WINDOWS_DNS` log type. The "New UDM Mapping" reflects the current mapping described in this document.

The following tables list the delta between the old UDM Mapping of `WINDOWS_DNS` and the new UDM Mapping of `WINDOWS_DNS`.

### UDM Mapping Delta reference: WINDOWS DNS

The following table lists the delta of log fields and their corresponding UDM fields:

| Raw Field | Old UDM Mapping | New UDM Mapping |
|---|---|---|
| `EventID` | `security_result.rule_name` | `metadata.product_event_type` |
| `ExecutionProcessID` | If the `EventID` log field value is one of the following, then the `ExecutionProcessID` log field is mapped to the `target.process.pid` UDM field: - `256` - `259` - `261` - `263` - `266` - `268` - `270` - `272` - `273` - `275` - `278` - `279` - `280` Otherwise, the `ExecutionProcessID` log field is mapped to the `principal.process.pid` UDM field. | `principal.process.pid` |
| `Hostname` | If the `EventID` log field value is one of the following, then the `Hostname` log field is mapped to the `target.hostname` and `target.asset.hostname` UDM field: - `256` - `259` - `261` - `263` - `266` - `268` - `270` - `272` - `273` - `275` - `278` - `279` - `280` Otherwise, the `Hostname` log field is mapped to the `principal.hostname` and `principal.asset.hostname` UDM fields. | If the `EventID` log field value is one of the following, then the `Hostname` log field is mapped to the `target.hostname` and `target.asset.hostname` UDM field: - `256` - `259` - `261` - `263` - `278` If the `EventID` log field value is one of the following, then the `Hostname` log field is mapped to the `principal.hostname` and `principal.asset.hostname` UDM fields: - `257` - `258` - `260` - `262` - `264` - `277` If the `EventID` log field value is one of the following then the `Hostname` log field is mapped to the `intermediary.hostname` and `intermediary.asset.hostname` UDM fields: - `257` - `258` - `259` - `260` - `261` - `262` - `263` - `264` - `265` - `266` - `267` - `268` - `269` - `270` - `271` - `272` - `273` - `274` - `275` - `276` - `277` - `278` - `279` - `280` |
| `UserID` | If the `EventID` log field value is one of the following, then the `UserID` log field is mapped to the `target.user.windows_sid` UDM field: - `256` - `259` - `261` - `263` - `266` - `268` - `270` - `272` - `273` - `275` - `278` - `279` - `280` Otherwise, the `UserID` log field is mapped to the `principal.user.windows_sid` UDM field. | `principal.user.windows_sid` |
| `Severity` | If the `Severity` log field value is one of `CRITICAL`, `INFO`, or `DEBUG`, then the `security_result.severity` UDM field is set to `INFORMATIONAL`. Otherwise, if the `Severity` log field value is one of `ERROR` or `WARNING`, then the `security_result.severity` UDM field is set to `ERROR`. | If the `Severity` log field value is one of `INFO` or `DEBUG`, then the `security_result.severity` UDM field is set to `INFORMATIONAL`. Otherwise, if the `Severity` log field value is one of `ERROR` or `WARNING`, then the `security_result.severity` UDM field is set to `ERROR`. Otherwise, if the `Severity` log field value is equal to `CRITICAL`, then the `security_result.severity` UDM field is set to `CRITICAL`. |
| `Channel` | `metadata.product_event_type` | `additional.fields[Channel]` |
| `QNAME` | If the `EventID` log field value is not one of the following, and the `QNAME` log field is not empty, then the `QNAME` log field is mapped to the `target.hostname` and `target.asset.hostname` UDM fields: - `256` - `259` - `261` - `263` - `266` - `268` - `270` - `272` - `273` - `275` - `278` - `279` - `280` | If the `EventID` log field value is one of the following, then the `QNAME` log field is mapped to the `target.resource.name` UDM field: - `265` - `266` - `267` - `268` - `269` - `270` - `271` - `272` - `273` - `274` If the `EventID` log field value is one of the following, then the `QNAME` log field is mapped to the `network.dns.questions.name` UDM field: - `257` - `258` - `259` - `260` - `261` - `262` - `263` - `264` - `265` - `266` - `267` - `268` - `269` - `270` - `271` - `272` - `273` - `274` - `275` - `276` - `277` - `278` - `279` - `280` |
| `PolicyName` | `security_result.detection_fields.ourlfilterrulelabel` | `security_result.rule_name` |
|   | If the `EventID` log field value is one of the following, then the `network.direction` UDM field is set to `INBOUND`: - `256` - `259` - `261` - `263` - `266` - `268` - `270` - `272` - `273` - `275` - `278` - `279` - `280` Otherwise, if the `InterfaceIP` log field is not empty, then the `network.direction` UDM field is set to `OUTBOUND`. | If the `EventID` log field value is one of the following, then the `network.direction` UDM field is set to `INBOUND`: - `256` - `259` - `261` - `263` - `266` - `268` - `270` - `272` - `273` - `275` - `278` - `279` - `280` Otherwise, if the `EventID` log field value is one of the following, then the `network.direction` UDM field is set to `OUTBOUND`: - `257` - `258` - `260` - `262` - `264` - `265` - `267` - `269` - `271` - `274` - `276` - `277` |
| `InterfaceIP` | If the `EventID` log field value is one of the following, then the `InterfaceIP` log field is mapped to the `target.ip` and `target.asset.ip` UDM fields: - `256` - `259` - `261` - `263` - `266` - `268` - `270` - `272` - `273` - `275` - `278` - `279` - `280` Otherwise, the `InterfaceIP` log field is mapped to the `principal.ip` and `principal.asset.ip` UDM fields. | If the `EventID` log field value is one of the following, then the `InterfaceIP` log field is mapped to the `target.ip` and `target.asset.ip` UDM fields: - `256` - `259` - `261` - `263` - `278` Otherwise if the `EventID` log field value is one of the following, then the `InterfaceIP` log field is mapped to the `principal.ip` and `principal.asset.ip` UDM fields: - `257` - `258` - `260` - `262` - `264` - `267` - `271` - `274` - `277` Additionally, if the `EventID` log field value is any of the events with EventID ranging from `256` through `280`, the `InterfaceIP` log field is mapped to the `intermediary.ip` and `intermediary.asset.ip` UDM fields. |
| `Source` | If the `Source` log field value is not empty and is not `Null Address`: - If the `EventID` log field value is one of the following, then the `Source` log field is mapped to the `target.ip` and `target.asset.ip` UDM fields: - `265` - `269` - `274` - Otherwise, the `Source` log field is mapped to the `principal.ip` and `principal.asset.ip` UDM fields. | If the `EventID` log field value is one of the following, and the `Source` log field is not empty and is a valid IP address, then the `Source` log field is mapped to the `principal.ip` and `principal.asset.ip` UDM fields: - `256` - `259` - `261` - `263` - `265` - `266` - `269` - `270` - `273` - `275` - `278` - `279` - `280` |
| `Destination` | If the `Destination` log field value is not empty and is not `Null Address`: - If the `EventID` log field value is one of the following, then the `Destination` log field is mapped to the `principal.ip` and `principal.asset.ip` UDM fields: - `268` - `272` - Otherwise, the `Destination` log field is mapped to the `target.ip` and `target.asset.ip` UDM fields. | If the `Destination` log field is not empty and is a valid IP address: - If the `EventID` log field value is one of the following, then the `Destination` log field is mapped to the `principal.ip` and `principal.asset.ip` UDM fields: - `268` - `272` - Otherwise if the `EventID` log field value is one of the following, then the `Destination` log field is mapped to the `target.ip` and `target.asset.ip` UDM fields: - `257` - `258` - `260` - `262` - `264` - `267` - `271` - `274` - `276` - `277` |
| `Port` | If the `Source` log field is not one of empty or `Null Address`, and the `EventID` log field value is not one of the following, then the `Port` log field is mapped to the `principal.port` UDM field: - `265` - `269` - `274` If the `Destination` log field is not one of empty or `Null Address`, and the `EventID` log field value is not one of the following, then the `Port` log field is mapped to the `target.port` UDM field: - `268` - `272` | If the `EventID` log field value is one of the following, then the `Port` log field is mapped to the `principal.port` UDM field: - `261` - `263` - `279` - `280` If the `EventID` log field value is one of the following, then the `Port` log field is mapped to the `target.port` UDM field: - `257` - `258` - `260` - `262` |
| `RD` | If the `RD` log field value is equal to `1`, then the `network.dns.recursion_desired` UDM field is set to `true`. | If the `RD` log field value is equal to `1`, then the `network.dns.recursion_desired` UDM field is set to `true`. Otherwise, if the `RD` log field value is equal to `0`, then the `network.dns.recursion_desired` UDM field is set to `false`. |

### New UDM Mappings reference: WINDOWS DNS

The following table lists new log fields and their corresponding UDM fields:

| Raw Field | New UDM Mapping |
|---|---|
| `ExecutionThreadID` | `additional.fields[ExecutionThreadID]` |
| `ProviderGuid` | `metadata.product_deployment_id` |
| `Keywords` | `additional.fields[Keywords]` |
| `OpcodeValue` | `additional.fields[OpcodeValue]` |
| `NodeName` | `additional.fields[NodeName]` |
| `Action` | `additional.fields[Action]` |
| `SourceName` | `additional.fields[SourceName]` |
| `TaskValue` | `additional.fields[TaskValue]` |
| `Version` | `additional.fields[Version]` |
| `DataTag` | `additional.fields[DataTag]` |
| `EDNSCorrelationTag` | `additional.fields[EDNSCorrelationTag]` |
| `EDNSDataTag` | `additional.fields[EDNSDataTag]` |
| `EDNSExtendedRCodeBits` | `additional.fields[EDNSExtendedRCodeBits]` |
| `EDNSFlags` | `additional.fields[EDNSFlags]` |
| `EDNSScopeName` | `additional.fields[EDNSScopeName]` |
| `EDNSUdpPayloadSize` | `additional.fields[EDNSUdpPayloadSize]` |
| `EDNSVirtualizationInstance` | `additional.fields[EDNSVirtualizationInstance]` |
| `ElapsedTime` | `additional.fields[ElapsedTime]` |
| `ErrorsPerSecond` | `additional.fields[ErrorsPerSecond]` |
| `EventString` | `additional.fields[EventString]` |
| `FriendlyName` | `additional.fields[FriendlyName]` |
| `IPv4PrefixLength` | `additional.fields[IPv4PrefixLength]` |
| `IPv6PrefixLength` | `additional.fields[IPv6PrefixLength]` |
| `LeakRate` | `additional.fields[LeakRate]` |
| `ListenAddresses` | `additional.fields[ListenAddresses]` |
| `Mode` | `additional.fields[Mode]` |
| `NewFriendlyName` | `additional.fields[NewFriendlyName]` |
| `NewPropertyValues` | `additional.fields[NewPropertyValues]` |
| `NewScope` | `additional.fields[NewScope]` |
| `OldFriendlyName` | `additional.fields[OldFriendlyName]` |
| `OldPropertyValues` | `additional.fields[OldPropertyValues]` |
| `OldScope` | `additional.fields[OldScope]` |
| `ResponsePerSecond` | `additional.fields[ResponsePerSecond]` |
| `RRLExceptionlist` | `additional.fields[RRLExceptionlist]` |
| `ScopeWeight` | `additional.fields[ScopeWeight]` |
| `ScopeWeightNew` | `additional.fields[ScopeWeightNew]` |
| `ScopeWeightOld` | `additional.fields[ScopeWeightOld]` |
| `SeizedOrTransfered` | `additional.fields[SeizedOrTransfered]` |
| `SubTreeAging` | `additional.fields[SubTreeAging]` |
| `TCRate` | `additional.fields[TCRate]` |
| `TotalResponsesInWindow` | `additional.fields[TotalResponsesInWindow]` |
| `WindowSize` | `additional.fields[WindowSize]` |
| `WithNewKeys` | `additional.fields[WithNewKeys]` |
| `WithWithout` | `additional.fields[WithWithout]` |

## Change Log

[View the Change Log for this parser](https://docs.cloud.google.com/chronicle/docs/ingestion/parser-list/windows-dns-changelog)

**Need more help?** [Get answers from Community members and Google SecOps professionals.](https://security.googlecloudcommunity.com/)