Microsoft Defender for Cloud Apps
Cloud and workloads

Advanced log collector management | Microsoft Defender for Cloud Apps

In brief

The page now includes clearer advanced-options setup guidance, prerequisites and deployment references, container-preserving token renewal instructions, updated Defender portal terminology, and expanded Syslog troubleshooting guidance.

What Defender admins need to know

Administrators can use the revised instructions to configure collectors and troubleshoot log ingestion more consistently. No action is required.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Advanced log collector management

Configure advanced options for cloud discovery log collectors

This article describes how to configure advanced options for Defender for Cloud Apps cloud discovery log collectors.

Defender for Cloud Apps cloud discovery continues to focus on base firewall formats. Changes to the logs being forwarded at the firewall level may not continue to work, or may cause issues with parsing. If you find parsing errors of this sort,caused by modified firewall log formats, we recommend that you continue to use the base firewall format, or use options with the custom log collector. For more information, see Use a custom log parser.

This article describes how to modify the configuration for your Defender for Cloud Apps cloud discovery Docker.

Make sure you that you've performed the necessary steps to run Docker on a Windows or Linux machine and have successfully downloaded the Defender for Cloud Apps Docker image onto your host machine.

For more information,setup prerequisites and deployment steps, see Configure automatic log upload for continuous reports.

Validate Docker log collector container creation

Change the Java KeyStore password

    1. Install *netcat* and *wget*.

    1. Download a sample log file from Microsoftthe Defender XDR.portal. If needed, unzip the log file.

        1. In Microsoftthe Defender XDR,portal, under **Cloud Apps** select **Cloud Discovery** > **Actions** > **Create Cloud Discovery snapshot report**.

        1. Select the **Data source** from which you want to upload the log files.

Write output of the messages file to a local file

If you want to use your own sample log but don't have access to the appliance, you can capture incoming Syslog messages from a specific data source port to a local file for troubleshooting. Use

Run the following command to continuously tailstream themessages file from the log collector's syslog directory and write the output toSyslog messages for a given data source port into a local file on the host:host, so you can validate log ingestion or troubleshoot connectivity:

docker exec CustomerLogCollectorName tail -f -q /var/adallom/syslog/<datasource_port>/messages > /tmp/log.log