# Consuming Windows events with agent v8.4, getting error: EventHandles returned error The parameter is incorrect

**URL:** <https://discuss.elastic.co/t/consuming-windows-events-with-agent-v8-4-getting-error-eventhandles-returned-error-the-parameter-is-incorrect/319995>\
**Category:** Elastic Agent\
**Tags:** winlogbeat\
**Created:** [November 29, 2022, 6:37am UTC](https://discuss.elastic.co/t/consuming-windows-events-with-agent-v8-4-getting-error-eventhandles-returned-error-the-parameter-is-incorrect/319995 "2022-11-29T06:37:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Hyatt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_hyatt/32/72891_2.png) [@Michael\_Hyatt](https://discuss.elastic.co/u/Michael_Hyatt)\
**Post date:** [November 29, 2022, 6:37am UTC](https://discuss.elastic.co/t/consuming-windows-events-with-agent-v8-4-getting-error-eventhandles-returned-error-the-parameter-is-incorrect/319995/1 "2022-11-29T06:37:40Z")

</div>

Had Elastic agent 8.4 running consuming windows events using the System integration and the ingest stops with this warning showing right before the ingest stops:

I am really keen to know what can be done to debug it further.

Error document:

```auto
agent.type: filebeat
agent.version: 8.4.1
data_stream.dataset: elastic_agent.filebeat
data_stream.namespace: windows
data_stream.type: logs
ecs.version: 8.0.0
WinEventLog[winlog-system.security-33773421-0947-4529-9336-2e720922b49a] EventHandles returned error The parameter is incorrect.
log.origin.file.name: eventlog/wineventlog.go
host.os.family: windows
host.os.kernel: 10.0.17763.3532 (WinBuild.160101.0800)
host.os.name: Windows Server 2019 Datacenter
host.os.platform: windows
host.os.type: windows
host.os.version: 10.0
input.type: filestream
log.file.path: C:\Program Files\Elastic\Agent\data\elastic-agent-8d7885\logs\default\filebeat-20221126-10.ndjson
log.level: warn

```

Additional messages preceding this event:

```auto
"message": "Input 'winlog' failed with: input.go:130: input winlog-system.security-33773421-0947-4529-9336-2e720922b49a failed (id=winlog-system.security-33773421-0947-4529-9336-2e720922b49a) The parameter is incorrect."

```

```auto
"message": "Error occured while reading from Windows Event Log 'winlog-system.security-33773421-0947-4529-9336-2e720922b49a': The parameter is incorrect."

```

The issue is very intermittent, so I am a bit reluctant to leave the debug running for long periods of time.

---

<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:** [December 27, 2022, 6:38am UTC](https://discuss.elastic.co/t/consuming-windows-events-with-agent-v8-4-getting-error-eventhandles-returned-error-the-parameter-is-incorrect/319995/2 "2022-12-27T06:38:20Z")

</div>

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