# Cannot read property 'split' of undefined \[Winlogbeat\]

**URL:** <https://discuss.elastic.co/t/cannot-read-property-split-of-undefined-winlogbeat/258365>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [December 11, 2020, 5:19am UTC](https://discuss.elastic.co/t/cannot-read-property-split-of-undefined-winlogbeat/258365 "2020-12-11T05:19:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThreatInter](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@ThreatInter](https://discuss.elastic.co/u/ThreatInter)\
**Post date:** [December 11, 2020, 5:19am UTC](https://discuss.elastic.co/t/cannot-read-property-split-of-undefined-winlogbeat/258365/1 "2020-12-11T05:19:36Z")

</div>

Hello, everyone!  
We have troubles with our winlogbeat agent. Sometimes it writes error message "TypeError: Cannot read property 'split' of undefined at C:\Program Files\Winlogbeat/module/security/config/winlogbeat-security.js:1522:24(16)"  
At string 1522 we saw this code

 ![изображение](https://us1.discourse-cdn.com/elastic/original/3X/3/d/3d16d26ef82c96222cd769e493925aaf02d43adb.jpeg)  
Can someone explain us what wrong here and how to avoid this error?

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [December 14, 2020, 10:04am UTC](https://discuss.elastic.co/t/cannot-read-property-split-of-undefined-winlogbeat/258365/2 "2020-12-14T10:04:58Z")

</div>

I guess it means that the user is not defined. Could you try adding a check if the user is not empty?

---

<div class="post-metadata">

**Author:** ![ThreatInter](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@ThreatInter](https://discuss.elastic.co/u/ThreatInter)\
**Post date:** [December 14, 2020, 11:03am UTC](https://discuss.elastic.co/t/cannot-read-property-split-of-undefined-winlogbeat/258365/3 "2020-12-14T11:03:23Z")

</div>

Already testing

---

<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:** [January 11, 2021, 1:03pm UTC](https://discuss.elastic.co/t/cannot-read-property-split-of-undefined-winlogbeat/258365/4 "2021-01-11T13:03:48Z")

</div>

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