<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DHCP feed to Cortex XDR in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/dhcp-feed-to-cortex-xdr/m-p/561119#M113720</link>
    <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/43480"&gt;@BPry&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Path at the server:&amp;nbsp;C:\Windows\System32\dhcp\DhcpSrvLog-Tue.log&lt;BR /&gt;That should be suitable with the config:&amp;nbsp;c:\Windows\System32\dhcp\DhcpSrvLog*.log&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Firewall rules: I searched for blocked traffic before, but there was none. So, all was good for me.&lt;/P&gt;
&lt;P&gt;Now, I searched also for existing traffic, and there is also none... (thanks for the push)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Trough this, I took a look at the&amp;nbsp;"C:\ProgramData\XDR Collector\Logs\scouter.log" and there I found this every five minutes:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;2023-10-10 15:52:03,221  &amp;lt;ERROR&amp;gt; content_manager.py:get_status:163 - filebeat is not running , error code: 1, b"Exiting: error unpacking config data: more than one namespace configured accessing 'output' (source:'C:\\ProgramData\\XDR Collector\\Data\\content\\filebeat-windows-x86_64\\filebeat.yml')\n"&lt;/LI-CODE&gt;
&lt;P&gt;Is that "filebeat not running" the problem? Because the service "XDR Collector" is running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2023 14:07:51 GMT</pubDate>
    <dc:creator>PeterMS</dc:creator>
    <dc:date>2023-10-10T14:07:51Z</dc:date>
    <item>
      <title>DHCP feed to Cortex XDR</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/dhcp-feed-to-cortex-xdr/m-p/561109#M113715</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have troubles to feed our DHCP logs into Cortex XDR.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I watched this Video:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=rxmn1sYzIlY" target="_blank"&gt;https://www.youtube.com/watch?v=rxmn1sYzIlY&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and for the installation I used this manual:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Ingest-Logs-from-Windows-DHCP-using-Elasticsearch-Filebeat?tocId=1oUsTnJzhhrKS4esy_2enw" target="_blank"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Ingest-Logs-from-Windows-DHCP-using-Elasticsearch-Filebeat?tocId=1oUsTnJzhhrKS4esy_2enw&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I created a XDR Collector for Windows and installed it on two DHCP servers (the servers are visible under "Administration").&lt;/LI&gt;
&lt;LI&gt;I created a "Windows DHCP" instance under "Configurations &amp;gt; Data Collection &amp;gt; Collection Integrations".&lt;/LI&gt;
&lt;LI&gt;I created a Filebeat XDR Collector profile&lt;STRONG&gt;*&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;I created a XDR Collector policy and added the two DHCP servers and the XDR collector profile.&lt;/LI&gt;
&lt;LI&gt;Result: no logs are feeded into Cortex XDR:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PeterSchlageter_0-1696938683614.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/54280i2890C0BE5ED7BA67/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="PeterSchlageter_0-1696938683614.png" alt="PeterSchlageter_0-1696938683614.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;*&lt;/STRONG&gt; here are the profile settings:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;# ============================== Filebeat inputs ===============================
filebeat.inputs:
  # Each - is an input. Most options can be set at the input level, so
  # you can use different inputs for various configurations.
  # Below are the input specific configurations.
  - type: log
    # Change to true to enable this input configuration.
    enabled: true
    # Paths that should be crawled and fetched. Glob based paths.
    paths:
      - c:\Windows\System32\dhcp\DhcpSrvLog*.log


# ============================== Elasticsearch Output ===============================
output.elasticsearch:
  enabled: true
  # Array of hosts to connect to.
  hosts: ["https://xxxxx.xdr.eu.paloaltonetworks.com:443/logs/v1/filebeat"]
  # Protocol - either `http` (default) or `https`.
  protocol: "https"
  compression_level: 5
  # Authentication credentials - either API key or username/password.
  api_key: "xxxxx"
  


# ================================= Processors =================================
processors:
  - add_host_metadata:
    when.not.contains.tags: forwarded
  - add_fields:
    fields:
      vendor: "microsoft"
      product: "dhcp"
  - drop_event.when.not.regexp.message: "^[0-9]+,.*"
  - dissect:
    tokenizer: "%{id},%{date},%{time},%{description},%{ipAddress},%{hostName},%{macAddress},%{userName},%{transactionID},%{qResult},%{probationTime},%{correlationID},%{dhcid},%{vendorClassHex},%{vendorClassASCII},%{userClassHex},%{userClassASCII},%{relayAgentInformation},%{dnsRegError}"
  - drop_fields:
    fields: ["message"]
  - add_locale: ~
  - rename:
      fields:
        - from: "event.timezone"
          to: "dissect.timezone"
      ignore_missing: true
      fail_on_error: false
  - add_cloud_metadata: ~
  - add_docker_metadata: ~
  - add_kubernetes_metadata: ~&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I tried different configuration styles. I also used the "filebeat.yml" template, but nothing helped.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Do I miss anything or did a mistake?&lt;/P&gt;
&lt;P&gt;Do you have some ideas what I can check next?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 12:47:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/dhcp-feed-to-cortex-xdr/m-p/561109#M113715</guid>
      <dc:creator>PeterMS</dc:creator>
      <dc:date>2023-10-10T12:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: DHCP feed to Cortex XDR</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/dhcp-feed-to-cortex-xdr/m-p/561114#M113717</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/221095"&gt;@PeterMS&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;So one small thing that you probably want to doublecheck is your path to the log files.&amp;nbsp;&lt;EM&gt;Many&amp;nbsp;&lt;/EM&gt;organizations that I've worked with change this path so it logs to another drive instead of C:\ and don't utilize the default file path for logs. Additionally ensure that your firewall is actually allowing the traffic; infrastructure services like DHCP nodes are usually highly restricted from a network traffic standpoint.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 13:19:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/dhcp-feed-to-cortex-xdr/m-p/561114#M113717</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2023-10-10T13:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: DHCP feed to Cortex XDR</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/dhcp-feed-to-cortex-xdr/m-p/561119#M113720</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/43480"&gt;@BPry&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Path at the server:&amp;nbsp;C:\Windows\System32\dhcp\DhcpSrvLog-Tue.log&lt;BR /&gt;That should be suitable with the config:&amp;nbsp;c:\Windows\System32\dhcp\DhcpSrvLog*.log&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Firewall rules: I searched for blocked traffic before, but there was none. So, all was good for me.&lt;/P&gt;
&lt;P&gt;Now, I searched also for existing traffic, and there is also none... (thanks for the push)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Trough this, I took a look at the&amp;nbsp;"C:\ProgramData\XDR Collector\Logs\scouter.log" and there I found this every five minutes:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;2023-10-10 15:52:03,221  &amp;lt;ERROR&amp;gt; content_manager.py:get_status:163 - filebeat is not running , error code: 1, b"Exiting: error unpacking config data: more than one namespace configured accessing 'output' (source:'C:\\ProgramData\\XDR Collector\\Data\\content\\filebeat-windows-x86_64\\filebeat.yml')\n"&lt;/LI-CODE&gt;
&lt;P&gt;Is that "filebeat not running" the problem? Because the service "XDR Collector" is running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 14:07:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/dhcp-feed-to-cortex-xdr/m-p/561119#M113720</guid>
      <dc:creator>PeterMS</dc:creator>
      <dc:date>2023-10-10T14:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: DHCP feed to Cortex XDR</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/dhcp-feed-to-cortex-xdr/m-p/562702#M113972</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;with the test:&lt;/P&gt;
&lt;PRE class="programlisting prettyprint lang-shell prettyprinted"&gt;&lt;SPAN class="pln"&gt;filebeat.exe test config &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;c filebeat&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;yml&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN class="pln"&gt;I recieved this error message:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="pln"&gt;&lt;SPAN&gt;Error initializing beat: error initializing processors: each processor must have exactly one action,&lt;BR /&gt;but found 2 actions (when,add_host_metadata)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN class="pln"&gt;&lt;SPAN&gt;I searched at the Elastic Website and KB, but did not find any solution that works.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="pln"&gt;&lt;SPAN&gt;If someone of you have any idea...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="pln"&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="pln"&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 06:10:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/dhcp-feed-to-cortex-xdr/m-p/562702#M113972</guid>
      <dc:creator>PeterMS</dc:creator>
      <dc:date>2023-10-23T06:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: DHCP feed to Cortex XDR</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/dhcp-feed-to-cortex-xdr/m-p/563951#M114164</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first of all, it was my fault.&lt;/P&gt;
&lt;P&gt;In fact, the installation itself was much easier than described in the documentation.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Add-an-XDR-Collector-Profile-for-Windows" target="_blank"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Add-an-XDR-Collector-Profile-for-Windows&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All information is there.&lt;/P&gt;
&lt;P&gt;But I was very confused by the structure of this section and information that where useless for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;What worked for me:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;I created an XDR Collector installer under &lt;STRONG&gt;Settings &amp;gt; Configurations &amp;gt; XDR Collectors &amp;gt; Installers&lt;/STRONG&gt;
&lt;UL&gt;
&lt;LI&gt;Gave a name&lt;/LI&gt;
&lt;LI&gt;Selected the OS (Windows)&lt;/LI&gt;
&lt;LI&gt;Selected the Version (newest)&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;I downloaded and installed the XDR Collector on the corresponding server. The server was then visible under&amp;nbsp;&lt;STRONG&gt;Settings &amp;gt; Configurations &amp;gt; XDR Collectors &amp;gt; Administration&lt;/STRONG&gt;.&lt;BR /&gt;I checked if that "&lt;STRONG&gt;Filebeat Status&lt;/STRONG&gt;" is "&lt;STRONG&gt;Active&lt;/STRONG&gt;".&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Under &lt;STRONG&gt;Settings &amp;gt; Configurations &amp;gt; XDR Collectors &amp;gt; Profiles&lt;/STRONG&gt;, I created a new Filebeat profile:
&lt;UL&gt;
&lt;LI&gt;Right clicked the Windows Filebeat Default profile and clicked &lt;STRONG&gt;Save as new&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Gave a name and description&lt;/LI&gt;
&lt;LI&gt;Clicked below in &lt;STRONG&gt;Select template...&lt;/STRONG&gt; and select &lt;STRONG&gt;DHCP&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Clicked&amp;nbsp;&lt;STRONG&gt;Add&lt;/STRONG&gt; and &lt;STRONG&gt;Create&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;I did the same with the Windows Settings Default profile and adjusted it. There I only set&amp;nbsp;&lt;STRONG&gt;Enable&lt;/STRONG&gt; under&amp;nbsp;&lt;STRONG&gt;Collector Auto-Upgrade&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Under &lt;STRONG&gt;Settings &amp;gt; Configurations &amp;gt; XDR Collectors &amp;gt; Policies&lt;/STRONG&gt;&amp;nbsp;I created a new policy:
&lt;UL&gt;
&lt;LI&gt;Selected &lt;STRONG&gt;+ Add Policy&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Gave a name and description&lt;/LI&gt;
&lt;LI&gt;Select the platform (Windows)&lt;/LI&gt;
&lt;LI&gt;Selected the new Filebeat and Collector settings profile that I created under point 3. and 4.&lt;/LI&gt;
&lt;LI&gt;Clicked &lt;STRONG&gt;Next&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Selected the corresponding endpoint&lt;/LI&gt;
&lt;LI&gt;Clicked &lt;STRONG&gt;Next&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Clicked &lt;STRONG&gt;Done&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Clicked &lt;STRONG&gt;Save&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;After some minutes I went to the &lt;STRONG&gt;Query Builder&lt;/STRONG&gt;, selected &lt;STRONG&gt;XQL Search&lt;/STRONG&gt; and used this command:&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;dataset = microsoft_dhcp_raw​&lt;/LI-CODE&gt;
&lt;P&gt;and saw the long awaited data.&lt;/P&gt;
&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I hope that maybe this will help someone else as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 20:07:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/dhcp-feed-to-cortex-xdr/m-p/563951#M114164</guid>
      <dc:creator>PeterMS</dc:creator>
      <dc:date>2023-11-01T20:07:58Z</dc:date>
    </item>
  </channel>
</rss>

