This is a modified version of evt2ls.ps, a Powershell script that grabs event logs and pushes them to a logstash. The original work was done by:
Author: Xavier Mertens <xavier(at)rootshell(dot).be>
Copyright: GPLv3 (http://gplv3.fsf.org)
Feel free to use the code but please share the changes you've made
https://blog.rootshell.be/2015/08/24/sending-windows-event-logs-to-logstash/
https://github.com/xme/powershell_scripts/blob/master/evt2ls.ps1
Mad props, Xavier. Anyway, I made changes, and now I'm sharing them.