Skip to content

Commit

Permalink
Update Sysmon Event ID 22 for ECS DNS (#13323)
Browse files Browse the repository at this point in the history
Change two fields to match ECS DNS. This is a follow-up to #13116 now that the field names are finalized.
  • Loading branch information
andrewkroh authored Aug 27, 2019
1 parent 44061f4 commit 88483a8
Show file tree
Hide file tree
Showing 5 changed files with 1,626 additions and 2,011 deletions.
60 changes: 0 additions & 60 deletions winlogbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4708,66 +4708,6 @@ type: keyword
--
*`dns.question.name`*::
+
--
The name being queried.
type: keyword
--
*`dns.answers`*::
+
--
An array containing a dictionary about each answer section returned by the server.
type: object
--
*`dns.answers.type`*::
+
--
The type of data contained in this resource record.
type: keyword
example: CNAME
--
*`dns.answers.data`*::
+
--
type: keyword
--
*`dns.answers_count`*::
+
--
The number of resource records contained in the `dns.answers` field.
type: long
example: 3
--
*`dns.grouped.ip`*::
+
--
Array containing all IPs seen in `dns.answers.data`.
type: ip
--
[[exported-fields-winlog]]
== Winlogbeat fields
Expand Down
34 changes: 0 additions & 34 deletions x-pack/winlogbeat/module/sysmon/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,3 @@
- name: sysmon.dns.status
type: keyword
description: Windows status code returned for the DNS query.

# These dns.* fields are anticipated to be added to ECS.
- name: dns.question.name
type: keyword
description: >
The name being queried.
- name: dns.answers
type: object
description: >
An array containing a dictionary about each answer section returned by
the server.
- name: dns.answers.type
type: keyword
description: The type of data contained in this resource record.
example: CNAME

- name: dns.answers.data
type: keyword
short: The data describing the resource.

- name: dns.answers_count
type: long
description: >
The number of resource records contained in the `dns.answers` field.
example: 3

- name: dns.grouped.ip
type: ip
description: >
Array containing all IPs seen in `dns.answers.data`.
9 changes: 7 additions & 2 deletions x-pack/winlogbeat/module/sysmon/config/winlogbeat-sysmon.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,9 @@ var sysmon = (function () {

if (answers.length > 0) {
evt.Put("dns.answers", answers);
evt.Put("dns.answers_count", answers.length);
}
if (ips.length > 0) {
evt.Put("dns.grouped.ip", ips);
evt.Put("dns.resolved_ip", ips);
}
evt.Delete("winlog.event_data.QueryResults");
};
Expand Down Expand Up @@ -792,6 +791,12 @@ var sysmon = (function () {
ignore_missing: true,
fail_on_error: false,
})
.RegisteredDomain({
ignore_failure: true,
ignore_missing: true,
field: "dns.question.name",
target_field: "dns.question.registered_domain",
})
.Add(translateDnsQueryStatus)
.Add(splitDnsQueryResults)
.Add(setProcessNameUsingExe)
Expand Down
2 changes: 1 addition & 1 deletion x-pack/winlogbeat/module/sysmon/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 88483a8

Please sign in to comment.