# Get-WinEvent: Log count (405) is exceeded Windows Event Log API limit (256)

**URL:** <https://forums.powershell.org/t/get-winevent-log-count-405-is-exceeded-windows-event-log-api-limit-256/21918>\
**Category:** PowerShell Help\
**Created:** [March 20, 2023, 11:53pm UTC](https://forums.powershell.org/t/get-winevent-log-count-405-is-exceeded-windows-event-log-api-limit-256/21918 "2023-03-20T23:53:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blueriver649](https://avatars.discourse-cdn.com/v4/letter/b/eb9ed0/32.png) [@Blueriver649](https://forums.powershell.org/u/Blueriver649)\
**Post date:** [March 20, 2023, 11:53pm UTC](https://forums.powershell.org/t/get-winevent-log-count-405-is-exceeded-windows-event-log-api-limit-256/21918/1 "2023-03-20T23:53:55Z")

</div>

Hi there,

I am running get-winevent | get-member and the Shell responded " Get-WinEvent: Log count (405) is exceeded Windows Event Log API limit (256). Adjust filter to return less log names".

How do I adjust the Filter, thanks.

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [March 21, 2023, 12:01am UTC](https://forums.powershell.org/t/get-winevent-log-count-405-is-exceeded-windows-event-log-api-limit-256/21918/2 "2023-03-21T00:01:54Z")

</div>

Leo,  
Welcome to the forum.

When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( \</\> ). Simply place your cursor on an empty line, click the button and paste your code.

Thanks in advance

[How to format code in PowerShell.org](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/2X/b/bee50c628238f2c076c0504efb6b15f2fb11f002.gif) 1 \<---- Click 👆🏽 😉

> [@Blueriver649](#):
>
> I am running get-winevent | get-member

What are you actually looking for? To get all log names you can run

```auto
Get-WinEvent -ListLog *

```

If you like to read more about the error …

> **[Invoke Get-WinEvent without parameters](https://p0w3rsh3ll.wordpress.com/2019/12/29/invoke-get-winevent-without-parameters/)**
>
> You may be used to invoke cmdlets without parameters and get a nice default end-user experience. However, you may be surprised by the default behavior of the Get-WinEvent cmdlet. In a Windows Power…

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:15pm UTC](https://forums.powershell.org/t/get-winevent-log-count-405-is-exceeded-windows-event-log-api-limit-256/21918/3 "2024-05-16T20:15:03Z")

</div>


