Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cimnode/WindowsEVTX-ETL_2HEC
https://github.com/cimnode/WindowsEVTX-ETL_2HEC
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cimnode/WindowsEVTX-ETL_2HEC
- Owner: cimnode
- Created: 2022-01-06T16:58:23.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-07T18:07:21.000Z (almost 3 years ago)
- Last Synced: 2024-08-05T17:43:35.756Z (4 months ago)
- Language: PowerShell
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - cimnode/WindowsEVTX-ETL_2HEC - (PowerShell)
README
# WindowsEVTX-ETL_2HEC
Send Windows Event(EVTX) and Analytics(ETL) files to a Splunk HTTP Event Collector.This script **requires** Powershell 7 to run. Powershell 7 vastly improves the handling of Windows Events and Trace files. https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.2
1. Download and unzip files.
2. Edit SplunkSettings.json with appropriate values.
- HEC token must already be created
- Follow JSON format exactly
3. Unblock ps1 scripts so they can be run. (Run commands from within directory containing files to be unblocked.)
```
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachineUnblock-File -path .\Run_Win_ETL-EVTX_2HEC_Threaded.ps1
Unblock-File -path .\WinETL-EVTX2HEC.ps1
```
4. Run using pwsh (Powershell 7) Specify values for EventFilePath, SecondsMinusEarliest and SecondsMinusLatest. (Default time range is very short.)
Examples:
```
.\Run_Win_ETL-EVTX_2HEC_Threaded.ps1 -EventFilePath C:\Windows\System32\winevt\Logs\Application.evtx -SecondsMinusEarliest 3000000 -SecondsMinusLatest 0
.\Run_Win_ETL-EVTX_2HEC_Threaded.ps1 -EventFilePath C:\Windows\System32\winevt\Logs\RemoteDesktopServices-RemoteFX-SessionLicensing-Debug.etl -SecondsMinusEarliest 3000000 -SecondsMinusLatest 0
```
SecondsMinusEarliest and SecondsMinusLatest set the time range the events are pulled from. Earliest would be the oldest 'TimeCreated' value looking backwards in seconds. And latest would be the 'TimeCreated' of the newest event.
If the EventFilePath has a space, enclose it in double quotes.This script is a work in progress!