- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
10-10-2023 05:47 AM
Dear all,
I have troubles to feed our DHCP logs into Cortex XDR.
I watched this Video:
https://www.youtube.com/watch?v=rxmn1sYzIlY
and for the installation I used this manual:
* here are the profile settings:
# ============================== 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: ~
Do I miss anything or did a mistake?
Do you have some ideas what I can check next?
Thanks,
Peter
11-01-2023 01:07 PM
Dear all,
first of all, it was my fault.
In fact, the installation itself was much easier than described in the documentation.
All information is there.
But I was very confused by the structure of this section and information that where useless for me.
What worked for me:
dataset = microsoft_dhcp_raw
and saw the long awaited data.
I hope that maybe this will help someone else as well.
Regards,
Peter
10-10-2023 06:19 AM
So one small thing that you probably want to doublecheck is your path to the log files. Many 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.
10-10-2023 07:07 AM
Thank you for your reply.
Path at the server: C:\Windows\System32\dhcp\DhcpSrvLog-Tue.log
That should be suitable with the config: c:\Windows\System32\dhcp\DhcpSrvLog*.log
Firewall rules: I searched for blocked traffic before, but there was none. So, all was good for me.
Now, I searched also for existing traffic, and there is also none... (thanks for the push)
Trough this, I took a look at the "C:\ProgramData\XDR Collector\Logs\scouter.log" and there I found this every five minutes:
2023-10-10 15:52:03,221 <ERROR> 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"
Is that "filebeat not running" the problem? Because the service "XDR Collector" is running.
Regards,
Peter
10-22-2023 11:10 PM
Dear all,
with the test:
filebeat.exe test config -c filebeat.yml
I recieved this error message:
Error initializing beat: error initializing processors: each processor must have exactly one action,
but found 2 actions (when,add_host_metadata)
I searched at the Elastic Website and KB, but did not find any solution that works.
If someone of you have any idea...
Regards,
Peter
11-01-2023 01:07 PM
Dear all,
first of all, it was my fault.
In fact, the installation itself was much easier than described in the documentation.
All information is there.
But I was very confused by the structure of this section and information that where useless for me.
What worked for me:
dataset = microsoft_dhcp_raw
and saw the long awaited data.
I hope that maybe this will help someone else as well.
Regards,
Peter
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!