Ingest logs from Windows DHCP using Elasticsearch Filebeat
Collect Windows DHCP data using Elasticsearch Filebeat with Cortex Cloud.
You can configure Cortex Cloud to receive Windows DHCP logs using Elasticsearch Filebeat with the following data collectors.
Ingest Windows DHCP logs with an XDR Collector profile
Extend Cortex Cloud visibility into logs from Windows DHCP using an XDR Collector Windows Filebeat profile.
You can enrich network logs with Windows DHCP data when defining data collection in an XDR Collector Windows Filebeat profile. When you add a XDR Collector Windows Filebeat profile using the Elasticsearch Filebeat default configuration file called filebeat.yml, you can define whether the collected data undergoes follow-up processing in the backend for Windows DHCP data. Cortex Cloud uses Windows DHCP logs to enrich your network logs with hostnames and MAC addresses that are searchable in XQL Search using the Windows DHCP Cortex Query Language (XQL) dataset (microsoft_dhcp_raw).
While this enrichment is also available when configuring a Windows DHCP Collector for a cloud data collection integration, we recommend configuring Cortex Cloud to receive Windows DHCP logs with an XDR Collector Windows Filebeat profile because it’s the ideal setup configuration.
Configure Cortex Cloud to receive logs from Windows DHCP using an XDR Collector Windows Filebeat profile.
Follow the steps for creating a Windows Filebeat profile as described in Add an XDR Collector Profile for Windows, and in the Filebeat Configuration File area, ensure that you select and Add the DHCP template. The template's content will be displayed here, and is editable.Add an XDR Collector Profile for Windows
To configure collection of Windows DHCP data, edit the template text as necessary for your system.
You can enrich network logs with Windows DHCP data when defining data collection by setting the
vendorto“microsoft”, andproductto“dhcp”in thefilebeat.ymlfile, which you can then query in themicrosoft_dhcp_rawdataset.
Ingest Windows DHCP logs with the Windows DHCP Collector
Extend Cortex Cloud visibility into logs from Windows DHCP using Elasticsearch Filebeat with the Windows DHCP data collector.
To receive Windows DHCP logs, you must configure data collection from Windows DHCP via Elasticsearch Filebeat. This is configured by setting up a Windows DHCP Collector in Cortex Cloud and installing and configuring an Elasticsearch Filebeat agent on your Windows DHCP Server. Cortex Cloud supports using Filebeat up to version 8.0.1 with the Windows DHCP Collector.
Certain settings in the Elasticsearch Filebeat default configuration file called filebeat.yml must be populated with values provided when you configure the Data Sources & Integrations settings in Cortex Cloud for the Windows DHCP Collector. To help you configure the filebeat.yml correctly, Cortex Cloud provides an example file that you can download and customize. After you set up collection integration, Cortex Cloud begins receiving new logs and data from the source.
Windows DHCP logs are stored as CSV (comma-separated values) log files. The logs rotate by days (DhcpSrvLog-<day>.log), and each file contains two sections: Event ID Meaning and the events list.
As soon as Cortex Cloud begins receiving logs, the app automatically creates a Windows DHCP XQL dataset (microsoft_dhcp_raw). Cortex Cloud uses Windows DHCP logs to enrich your network logs with hostnames and MAC addresses that are searchable in XQL Search using the Windows DHCP Cortex Query Language (XQL) dataset.
Configure Cortex Cloud to receive logs from Windows DHCP via Elasticsearch Filebeat with the Windows DHCP collector.
Configure the Windows DHCP Collector in Cortex Cloud.
Navigate to Settings → Data Sources & Integrations.
On the Data Sources & Integrations page, click + Add New, search for Windows DHCP, then hover over it and click Add.
(Optional) Download example filebeat.yml file. To help you configure your
filebeat.ymlfile correctly, Cortex Cloud provides an examplefilebeat.ymlfile that you can download and customize. To download this file, use the link provided in this dialog box.Specify a descriptive Name for your log collection configuration.
Save & Generate Token. The token is displayed in a blue box, which is blurred out in the image below. Click the copy icon next to the key and record it somewhere safe. You will need to provide this key when you set the
api_keyvalue in the Elasticsearch Output section in thefilebeat.ymlfile as explained in Step #2. If you forget to record the key and close the window you will need to generate a new key and repeat this process.Select Done to close the window.
In the Integrations page for the Windows DHCP Collector that you created, select Copy api url and record it somewhere safe. You will need to provide this URL when you set the
hostsvalue in the Elasticsearch Output section in thefilebeat.ymlfile as explained in Step #2.
Configure an Elasticsearch Filebeat agent on your Windows DHCP Server.
Navigate to the Elasticsearch Filebeat installation directory, and open the
filebeat.ymlfile to configure data collection with Cortex Cloud. We recommend that you use the download example file provided by Cortex Cloud.Update the following sections and tags in the
filebeat.ymlfile. The example code below details the specific sections to make these changes in the file.Filebeat inputs: Define the paths to crawl and fetch. The code below provides an example of how to configure the Filebeat inputs section in the
filebeat.ymlfile with these paths configured.Elasticsearch Output: Set the
hostsandapi_key, where both of these values are obtained when you configured the Windows DHCP Collector in Cortex Cloud as explained in Step #1. The code below provides an example of how to configure the Elasticsearch Output section in thefilebeat.ymlfile and indicates which settings need to be obtained from Cortex Cloud.Processors: Set the
tokenizerand add adrop_event processorto drop all events that do not start with an event ID. The code below provides an example of how to configure the Processors section in thefilebeat.ymlfile and indicates which settings need to be obtained from Cortex XDR.
Verify the status of the integration.
Return to the Integrations page and view the statistics for the log collection configuration.
After Cortex Cloud begins receiving logs from Windows DHCP via Elasticsearch Filebeat, you can use the XQL Search to search for logs in the new dataset (
microsoft_dhcp_raw).
Last updated
Was this helpful?
