Created
February 16, 2016 18:54
-
-
Save secabstraction/561d8f2ca9f9cdefc20c to your computer and use it in GitHub Desktop.
Revisions
-
secabstraction created this gist
Feb 16, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ # First lets collect some objects $Logons = Get-CimInstance -ClassName Win32_NtLogEvent -Filter "LogFile='Security' AND EventCode='4624'" # Now for the export $Logons | Export-Elastic -Node http://myelastic:9200