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

[microsoft_dhcp] Add event.reason (long descriptions) to each event (DHCPv4) #7100

Merged
merged 12 commits into from
Jul 31, 2023
Merged

[microsoft_dhcp] Add event.reason (long descriptions) to each event (DHCPv4) #7100

merged 12 commits into from
Jul 31, 2023

Conversation

nicpenning
Copy link
Contributor

  • Enhancement

What does this PR do?

This will add the Meaning that is found in the DHCPv4 logs into event.reason as follows:

Event ID Meaning
00 The log was started.
01 The log was stopped.
02 The log was temporarily paused due to low disk space.
10 A new IP address was leased to a client.
11 A lease was renewed by a client.
12 A lease was released by a client.
13 An IP address was found to be in use on the network.
14 A lease request could not be satisfied because the scope's address pool was exhausted.
15 A lease was denied.
16 A lease was deleted.
17 A lease was expired and DNS records for an expired leases have not been deleted.
18 A lease was expired and DNS records were deleted.
20 A BOOTP address was leased to a client.
21 A dynamic BOOTP address was leased to a client.
22 A BOOTP request could not be satisfied because the scope's address pool for BOOTP was exhausted.
23 A BOOTP IP address was deleted after checking to see it was not in use.
24 IP address cleanup operation has began.
25 IP address cleanup statistics.
30 DNS update request to the named DNS server.
31 DNS update failed.
32 DNS update successful.
33 Packet dropped due to NAP policy.
34 DNS update request failed.as the DNS update request queue limit exceeded.
35 DNS update request failed.
36 Packet dropped because the server is in failover standby role or the hash of the client ID does not match.
50+ Codes above 50 are used for Rogue Server Detection information.

The 50+ event code descriptions are found here: https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/dd183591(v=ws.10)#dhcp-server-logs-server-authorization-events

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

@nicpenning nicpenning requested a review from a team as a code owner July 21, 2023 15:49
@elasticmachine
Copy link

elasticmachine commented Jul 21, 2023

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-07-31T19:35:45.575+0000

  • Duration: 15 min 57 sec

Test stats 🧪

Test Results
Failed 0
Passed 6
Skipped 0
Total 6

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@nicpenning nicpenning changed the title [microsoft_dhcp] Add event.reason (long descriptions) to each event DHCPv4 [microsoft_dhcp] Add event.reason (long descriptions) to each event (DHCPv4) Jul 21, 2023
@efd6
Copy link
Contributor

efd6 commented Jul 23, 2023

/test

@efd6
Copy link
Contributor

efd6 commented Jul 23, 2023

For the commit message, can you provide a link for the messages that are below 50? Up-page of the link provided, there are some of them listed, but not the entirety. Do MS have a single canonical location for these details?

@elasticmachine
Copy link

elasticmachine commented Jul 23, 2023

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (1/1) 💚
Files 100.0% (3/3) 💚
Classes 100.0% (3/3) 💚
Methods 100.0% (24/24) 💚
Lines 98.69% (678/687)
Conditionals 100.0% (0/0) 💚

@nicpenning
Copy link
Contributor Author

For the commit message, can you provide a link for the messages that are below 50? Up-page of the link provided, there are some of them listed, but not the entirety. Do MS have a single canonical location for these details?

Interestingly enough, I could not find an extensive list from Microsoft. The full list lives in the eventog itself at the beginning of each log file when they get created each day.

Does that help?

@efd6
Copy link
Contributor

efd6 commented Jul 24, 2023

Thanks, Nic. Yes that will do for the commit message. I'm surprised that Microsoft don't provide adequate documentation.

@nicpenning
Copy link
Contributor Author

No problem. I tried to find it on their GitHub docs but these docs are fairly old and haven't made it to GH. If I ever do find it I will report accordingly.

Copy link
Contributor

@efd6 efd6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nit then LGTM

@nicpenning
Copy link
Contributor Author

Sounds good. I appreciate your thoroughness!

@nicpenning
Copy link
Contributor Author

Anything else needed for this to be merged?

@nicpenning
Copy link
Contributor Author

I fixed the merge conflicts. Can someone please review? Thanks!

@andrewkroh
Copy link
Member

/test

@nicpenning
Copy link
Contributor Author

Any last items on this? I think we are close.

@nicpenning
Copy link
Contributor Author

nicpenning commented Jul 31, 2023

👀 - I had to bump the version again because other changes were made. Could this please be review again? Thanks!

@andrewkroh
Copy link
Member

/test

@elasticmachine
Copy link

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@andrewkroh andrewkroh merged commit 7840448 into elastic:main Jul 31, 2023
1 check passed
@elasticmachine
Copy link

Package microsoft_dhcp - 1.17.0 containing this change is available at https://epr.elastic.co/search?package=microsoft_dhcp

@nicpenning nicpenning deleted the dhcp-descriptions branch August 1, 2023 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants