# Windows defender logs

**URL:** <https://discuss.elastic.co/t/windows-defender-logs/344532>\
**Category:** Elastic Security\
**Created:** [October 6, 2023, 10:30am UTC](https://discuss.elastic.co/t/windows-defender-logs/344532 "2023-10-06T10:30:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cara\_es](https://avatars.discourse-cdn.com/v4/letter/c/c4cdca/32.png) [@cara\_es](https://discuss.elastic.co/u/cara_es)\
**Post date:** [October 6, 2023, 10:30am UTC](https://discuss.elastic.co/t/windows-defender-logs/344532/1 "2023-10-06T10:30:22Z")

</div>

Hi.  
How can i get logs from windows defender to Elasticsearch

the log are in EventViewer -\> Applications and Services Logs  
Microsoft - Windows - Windows Defender - Operational

Kind regards  
Carsten

---

<div class="post-metadata">

**Author:** ![cara\_es](https://avatars.discourse-cdn.com/v4/letter/c/c4cdca/32.png) [@cara\_es](https://discuss.elastic.co/u/cara_es)\
**Post date:** [October 6, 2023, 10:32am UTC](https://discuss.elastic.co/t/windows-defender-logs/344532/2 "2023-10-06T10:32:52Z")

</div>

Forgot to write i use version 8.8.1 and the servers are on-premises

---

<div class="post-metadata">

**Author:** ![wsouza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wsouza/32/92547_2.png) [@wsouza](https://discuss.elastic.co/u/wsouza)\
**Post date:** [October 9, 2023, 2:29pm UTC](https://discuss.elastic.co/t/windows-defender-logs/344532/3 "2023-10-09T14:29:55Z")

</div>

Hi, you need to create a policy and add the Custom Windows event logs integration. And enter the Microsoft-Windows-Windows Defender/Operational channel to collect the logs you want.

 ![print1](https://us1.discourse-cdn.com/elastic/original/3X/f/1/f14d374ea71065bb1c4c11a5d7a148196c4f9e7c.png)

 ![print3](https://us1.discourse-cdn.com/elastic/original/3X/7/9/79f754d7c4e5fee3217f0fce2b5a6eac95c54dce.png)

 ![print2](https://us1.discourse-cdn.com/elastic/original/3X/a/a/aa614f5a3665fd32b53599f9dd0547dd506d3038.png)

You can get a list of available event log channels by running [`Get-WinEvent -ListLog * | Format-List -Property LogName`](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.diagnostics/get-winevent) in PowerShell on Windows Vista or newer. If `Get-WinEvent` is not available, [`Get-EventLog *`](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-eventlog) may be used.

---

<div class="post-metadata">

**Author:** ![cara\_es](https://avatars.discourse-cdn.com/v4/letter/c/c4cdca/32.png) [@cara\_es](https://discuss.elastic.co/u/cara_es)\
**Post date:** [October 11, 2023, 1:59pm UTC](https://discuss.elastic.co/t/windows-defender-logs/344532/4 "2023-10-11T13:59:45Z")

</div>

Thanks.  
( i hasn't seen that integration )

Regards Carsten

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 8, 2023, 1:59pm UTC](https://discuss.elastic.co/t/windows-defender-logs/344532/5 "2023-11-08T13:59:47Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
