Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Sysmon Event ID 22 for ECS DNS #13323

Merged
merged 2 commits into from
Aug 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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