Skip to content

Instantly share code, notes, and snippets.

@secabstraction
Created February 16, 2016 18:54
Show Gist options
  • Save secabstraction/561d8f2ca9f9cdefc20c to your computer and use it in GitHub Desktop.
Save secabstraction/561d8f2ca9f9cdefc20c to your computer and use it in GitHub Desktop.
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment