Collect Windows Defender Antivirus logs
This document explains how to ingest Windows Defender Antivirus logs to Google Security Operations using Bindplane.
Windows Defender Antivirus is the built-in antimalware engine in Microsoft Windows that provides real-time threat detection, scan results, and protection event logs. The Bindplane agent collects exported Windows Defender event log files directly from the local file system.
Before you begin
Make sure you have the following prerequisites:
- A Google SecOps instance
- Windows Server 2016 or later with
observiq-otel-collectorservice support - If running behind a proxy, ensure firewall ports are open per the Bindplane agent requirements
- Administrator access to Windows endpoints running Windows Defender Antivirus
Get Google SecOps credentials for the Bindplane agent
To authenticate the Bindplane agent to Google SecOps, choose one of the following methods:
- New deployments: Use the Chronicle API (Option 1).
- Legacy deployments: Continue using the ingestion authentication file (Option 2) until the Ingestion API is discontinued on July 20, 2027.
Option 1: Create a service account for the Chronicle API (recommended)
- Sign in to the Google Cloud console and select the Google Cloud project that is linked to your Google SecOps instance.
- Go to IAM & Admin > Service Accounts.
- Click Create service account.
- Provide the following configuration details:
- Service account name: Enter a name for the account (for example,
bindplane-ingest). - Service account description: Enter a description (for example,
Bindplane agent log ingestion).
- Service account name: Enter a name for the account (for example,
- Click Create and continue.
- In the Grant this service account access to project section, click Select a role and select Chronicle Editor.
- Click Continue, and then click Done.
- Click the service account you created, and then go to the Keys tab.
- Click Add key > Create new key.
- Select JSON and click Create. The key file is downloaded to your computer.
- Save the key file as
ingestion-auth.jsonin the Bindplane collector directory (/opt/observiq-otel-collector/ingestion-auth.jsonon Linux orC:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.jsonon Windows), or updatecreds_file_pathinconfig.yamlto match the path where you save it. - Go to IAM & Admin > Settings and copy the Project number. You'll need it for the exporter configuration.
Option 2: Download the ingestion authentication file (legacy)
- Sign in to the Google SecOps console.
- Go to SIEM Settings > Collection Agents.
- Download the ingestion authentication file.
- Save the file securely on the system where the Bindplane agent will be installed.
Get Google SecOps customer ID
- Sign in to the Google SecOps console.
- Go to SIEM Settings > Profile.
Copy and save the Customer ID from the Organization Details section.
Install the Bindplane agent
Install the Bindplane agent on your Windows operating system according to the following instructions.
Windows installation
- Open Command Prompt or PowerShell as an administrator.
Run the following command:
msiexec /i "https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi" /quietWait for the installation to complete.
Verify the installation by running:
sc query observiq-otel-collector
The service should show as RUNNING.
Additional installation resources
For additional installation options and troubleshooting, see Bindplane agent installation guide.
Configure Bindplane agent to ingest logs and send to Google SecOps
Locate the configuration file
Windows:
notepad "C:\Program Files\observIQ OpenTelemetry Collector\config.yaml"
Edit the configuration file
Replace the entire contents of
config.yamlwith the following configuration:receivers: filelog: include: - C:\Logs\defender-av\*.evtx start_at: beginning exporters: chronicle/windows_defender_av: protocol: https # Region of your instance, for example us, europe, asia-southeast1 location: <LOCATION> # Project number of the Google Cloud project linked to the instance project: '<PROJECT_NUMBER>' compression: gzip creds_file_path: 'C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json' customer_id: '<customer_id>' endpoint: chronicle.googleapis.com log_type: WINDOWS_DEFENDER_AV raw_log_field: body ingestion_labels: env: production service: pipelines: logs/defender_av_to_chronicle: receivers: - filelog exporters: - chronicle/windows_defender_av
Configuration parameters
Replace the following placeholders:
Receiver configuration:
filelog: The receiver type for collecting log files from diskinclude: List of file paths to monitor. Set this to the location where you export Windows Defender event logs (for example,C:\Logs\defender-av\*.evtx)start_at: Set tobeginningto read existing logs orendto only read new entries
Exporter configuration:
windows_defender_av: Descriptive name for the exportercreds_file_path: Full path to the service account JSON key file (Option 1):- Windows:
C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json
- Windows:
<customer_id>: Customer ID from the previous steplocation: Replace<LOCATION>with the region of your Google SecOps instance (for example,us,europe, orasia-southeast1). The exporter prefixeschronicle.googleapis.comwith this value. See Regional Endpoints for the complete list.project: Replace<PROJECT_NUMBER>with the project number from IAM & Admin > Settings.endpoint: Keep set tochronicle.googleapis.com.WINDOWS_DEFENDER_AV: Log type exactly as it appears in Chronicleingestion_labels: Optional labels in YAML format (for example,env: production)
Pipeline configuration:
defender_av_to_chronicle: Descriptive name for the pipeline
Legacy ingestion API exporter
If you use the ingestion authentication file from Option 2, replace the
exportersblock with the following. Setcreds_file_pathto the path to the ingestion authentication file, and if your instance is outside the US, replacemalachiteingestion-pa.googleapis.comwith your regional endpoint (for example,europe-malachiteingestion-pa.googleapis.com).exporters: chronicle/windows_defender_av: compression: gzip creds_file_path: 'C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json' customer_id: '<customer_id>' endpoint: malachiteingestion-pa.googleapis.com log_type: WINDOWS_DEFENDER_AV raw_log_field: body ingestion_labels: env: production
Save the configuration file
- After editing, save the file:
- Windows: Click File > Save
Restart the Bindplane agent to apply the changes
To restart the Bindplane agent in Windows:
Choose one of the following options:
- Command Prompt or PowerShell as administrator:
net stop observiq-otel-collector && net start observiq-otel-collector- Services console:
- Press
Win+R, typeservices.msc, and press Enter. - Locate observIQ OpenTelemetry Collector.
- Right-click and select Restart.
- Press
Verify the service is running:
sc query observiq-otel-collectorCheck logs for errors:
type "C:\Program Files\observIQ OpenTelemetry Collector\log\collector.log"
Configure Windows Defender Antivirus log export
Windows Defender Antivirus logs are stored in the Windows Event Log under Microsoft-Windows-Windows Defender/Operational. You need to export these logs to files on disk so the Bindplane agent can collect them.
Create a directory to store the exported log files:
mkdir C:\Logs\defender-avExport Windows Defender Antivirus event logs using
wevtutil:wevtutil epl "Microsoft-Windows-Windows Defender/Operational" C:\Logs\defender-av\defender-av.evtx(Optional) Schedule regular exports using Windows Task Scheduler:
$action = New-ScheduledTaskAction -Execute "wevtutil" -Argument 'epl "Microsoft-Windows-Windows Defender/Operational" C:\Logs\defender-av\defender-av.evtx /ow:true' $trigger = New-ScheduledTaskTrigger -RepetitionInterval (New-TimeSpan -Hours 1) -Once -At (Get-Date) Register-ScheduledTask -Action $action -Trigger $trigger -TaskName "ExportDefenderLogs" -Description "Export Windows Defender AV logs for Bindplane agent"Verify that the exported log file is being created at `C:\Logs\defender-av`.
Ensure the Bindplane agent
includepath inconfig.yamlmatches the export directory.
UDM mapping table
| Log Field | UDM Mapping | Logic |
|---|---|---|
| OpcodeValue, ThreadID, Channel, engine_version, security_intelligence_version, network_realtime_inspection_engine_version, network_realtime_inspection_security_intelligence_version, rtp_state, oa_state, ioav_state, bm_state, antivirus_security_intelligence_age, antispyware_security_intelligence_age, last_quick_scan_age, last_full_scan_age, antivirus_security_intelligence_creation_time, antispyware_security_intelligence_creation_time, last_quick_scan_start_time, last_quick_scan_end_time, last_quick_scan_source, last_full_scan_start_time, last_full_scan_end_time, last_full_scan_source, product_status | additional.fields | Merged with label maps {key: field name, value: {string_value: field value}} if not empty |
| metadata.description | Set to event-specific description string based on EventID | |
| metadata.event_type | Set to "SCAN_HOST" if has_principal true, else "GENERIC_EVENT"; "SCAN_FILE" for EventID 1011,1116,1117 | |
| ProviderGuid | metadata.product_deployment_id | Value from ProviderGuid after removing {} |
| metadata.product_event_type | Set to event-specific product event type string based on EventID | |
| RecordNumber | metadata.product_log_id | Value copied directly as string |
| platform_version | metadata.product_version | Value copied directly |
| FWLink | metadata.url_back_to_product | Value copied directly |
| metadata.vendor_name | Set to "Microsoft" | |
| metadata.product_name | Set to "Windows Defender AV" | |
| SourceModuleType | observer.application | Value copied directly |
| Domain, _domain | principal.administrative_domain | Value from Domain, or _domain extracted from Detection User using grok for EventID 1116,1117 |
| Hostname | principal.hostname | Value copied directly |
| Process Name | principal.process.file.full_path | Value copied directly for EventID 1116,1117 |
| ProcessID | principal.process.pid | Value copied directly |
| SourceModuleName | principal.resource.name | Value copied directly |
| AccountType | principal.user.role_description | Value copied directly |
| AccountName | principal.user.user_display_name | Value copied directly |
| User, UserID, _account | principal.user.userid | Value from User, or UserID if not empty, or _account extracted from Detection User using grok for EventID 1116,1117 |
| SourceName | security_result.about.resource.attribute.labels | Merged with label map {key: "SourceName", value: SourceName} if not empty |
| security_result.action | Set to "ALLOW" by default; "BLOCK" for EventID 1116; "QUARANTINE" for EventID 1117 | |
| security_result.category | Set to "SOFTWARE_MALICIOUS" for EventID 1011,1116,1117 | |
| ActivityID | security_result.detection_fields | Merged with detection_fields {key: "Activity ID", value: ActivityID} if ActivityID not empty and not "-" |
| EventID | security_result.description | Set to "EventID: %{EventID}" |
| Threat Name | security_result.rule_name | Value copied directly for EventID 1011,1116,1117 |
| Severity, Level, EventType | security_result.severity | Set to LOW if Severity matches verbose|information|info, MEDIUM if warning|error, HIGH if critical; Severity set from Level (5|4 -> information, 2|3 -> warning, 1 -> critical); or from EventType (ERROR -> %{severity}, INFO -> "INFORMATIONAL", else severity_details) |
| Severity Name, severity | security_result.severity_details | Value from Severity Name for EventID 1011,1116,1117; or from severity for EventType not ERROR or INFO |
| Threat Name | security_result.summary | Value copied directly for EventID 1011,1116,1117 |
| Category Name | security_result.threat_name | Value copied directly for EventID 1011,1116,1117 |
| FWLink | security_result.url_back_to_product | Value copied directly for EventID 1011,1116,1117 |
| Path | target.file.full_path | Value copied directly for EventID 1116,1117 |
| target.hostname | Set to "" for EventID 1117 | |
| Path | target.registry.registry_key | Value copied directly for EventID 1011 |
EventRecordID |
event.idm.read_only_udm.metadata.product_log_id |
Mapped from changelog |
Product Version |
event.idm.read_only_udm.metadata.product_version |
Mapped from changelog |
ProviderGuid |
event.idm.read_only_udm.metadata.product_deployment_id |
Mapped from changelog |
Hostname |
event.idm.read_only_udm.principal.asset.hostname |
Mapped from changelog |
xmlns |
event.idm.read_only_udm.principal.url |
Mapped from changelog |
Threat Resource Path |
event.idm.read_only_udm.target.file.full_path |
Mapped from changelog |
Hashes |
event.idm.read_only_udm.target.file.sha1 |
Mapped from changelog |
RenderingInfoLevel |
event.idm.read_only_udm.security_result.severity_details |
Mapped from changelog |
Action Name |
event.idm.read_only_udm.security_result.action_details |
Mapped from changelog |
Detection Time |
event.idm.read_only_udm.security_result.first_discovered_time |
Mapped from changelog |
Threat ID |
event.idm.read_only_udm.security_result.threat_id |
Mapped from changelog |
Remediation User |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Status Description |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Action ID |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Additional Actions ID |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Additional Actions String |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Category ID |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Detection ID |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Engine Version |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Error Code |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Error Description |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Execution ID |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Execution Name |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Origin ID |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Origin Name |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Post Clean Status |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Pre Execution Status |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Security Intelligence Version |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Severity ID |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Source ID |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
State |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Status Code |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Type ID |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Type Name |
event.idm.read_only_udm.security_result.detection_fields |
Mapped from changelog |
Level |
event.idm.read_only_udm.additional.fields |
Mapped from changelog |
Culture |
event.idm.read_only_udm.additional.fields |
Mapped from changelog |
Keywords |
event.idm.read_only_udm.additional.fields |
Mapped from changelog |
Opcode |
event.idm.read_only_udm.additional.fields |
Mapped from changelog |
Product Name |
event.idm.read_only_udm.additional.fields |
Mapped from changelog |
Provider Name |
event.idm.read_only_udm.additional.fields |
Mapped from changelog |
RenderingInfoMessage |
event.idm.read_only_udm.additional.fields |
Mapped from changelog |
Service |
event.idm.read_only_udm.additional.fields |
Mapped from changelog |
Task |
event.idm.read_only_udm.additional.fields |
Mapped from changelog |
Version |
event.idm.read_only_udm.additional.fields |
Mapped from changelog |
Security UserID |
event.idm.read_only_udm.additional.fields |
Mapped from changelog |
EventID |
event.idm.read_only_udm.security_result.summary |
Mapped from changelog |
Change Log
View the Change Log for this parser
Need more help? Get answers from Community members and Google SecOps professionals.