-
Notifications
You must be signed in to change notification settings - Fork 165
[Security] Add guide for configuring DNS histogram on Network page #2757
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
029863a
[Security] Add guide for configuring DNS histogram on Network page
natasha-moore-elastic d880fde
remove mapped pages
natasha-moore-elastic 639f5e8
Address feedback
natasha-moore-elastic 6eceac9
apply feedback
natasha-moore-elastic 8c1e64d
Merge branch 'main' into issue-5584-dns
natasha-moore-elastic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| --- | ||
| applies_to: | ||
| stack: ga | ||
| serverless: | ||
| security: ga | ||
| products: | ||
| - id: security | ||
| - id: cloud-serverless | ||
| --- | ||
|
|
||
| # Configure the DNS histogram | ||
|
|
||
| The DNS histogram (**Top domains by dns.question.registered_domain**) on the **Network** page helps you visualize domain activity in your environment. Depending on your {{kib}} setup—for example, if you're using {{elastic-defend}}—you may need to add the `dns.question.registered_domain` field so that DNS data appears correctly. | ||
|
|
||
| If the DNS histogram is empty, follow these steps to populate the data. | ||
|
|
||
| ## Add the `dns.question.name` field | ||
|
|
||
| Add the `dns.question.name` field to the Events table to confirm that DNS data is available. | ||
|
|
||
| 1. On the **Network** page, select the **Events** tab. | ||
| 2. In the Events table, click **Fields**, then add the `dns.question.name` field. | ||
|
|
||
| ## Create a custom ingest pipeline | ||
|
|
||
| Create an ingest pipeline that extracts registered domains (for example, `example.com`) from full DNS query names (for example, `www.example.com`). | ||
|
|
||
| 1. Go to the **Ingest Pipelines** page using the navigation menu or the [global search field](/explore-analyze/find-and-organize/find-apps-and-objects.md), and select **Create pipeline → New pipeline**. | ||
| 2. On the **Create pipeline** page, set the pipeline name to `logs-endpoint.events.network@custom`. | ||
| 3. Click **Add a processor**. In the **Add processor** flyout, configure the following: | ||
| 1. From the **Processor** dropdown, select **Registered domain**. | ||
| 2. Under **Field**, enter `dns.question.name`. | ||
| 3. Under **Target field (optional)**, enter `dns.question.registered_domain`. | ||
| 4. Toggle **Ignore missing**. | ||
natasha-moore-elastic marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 5. Under **Condition (optional)**, enter `ctx?.dns?.question?.name != null`. | ||
| 6. Toggle **Ignore failures for this processor**. | ||
natasha-moore-elastic marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 7. Select **Add processor**. | ||
| 4. Select **Create pipeline**. This custom pipeline is automatically picked up by the existing `logs-endpoint.events.network-<version>` pipeline. | ||
|
|
||
| ## Add the `dns.question.registered_domain` field | ||
|
|
||
| Add the `dns.question.registered_domain` field to the Events table to verify that the ingest pipeline processes DNS queries correctly. | ||
|
|
||
| 1. Go back to the Events table on the **Network** page. | ||
| 2. Click **Fields**, then add the `dns.question.registered_domain` field. | ||
|
|
||
| After you configure the DNS histogram, it will show domain activity grouped by registered domain, allowing you to identify the top domains queried in your environment. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.