vagrant up win2012
You can connect to the VM in multiple ways.
- Microsoft Remote Desktop (available in Mac App Store)
- SSH
- VirtualBox Console
Connect to 127.0.0.1:33389
with vagrant/vagrant.
vagrant ssh-config win2012 > ssh-config
echo ' HostKeyAlgorithms +ssh-dss' >> ssh-config
ssh -F ssh-config win2012
powershell
Open VirtualBox, Click Show on VM
On the host machine (not Windows) update the generated files.
make update
There are two types of tests -- Go unit tests and Python unit tests. Neither require any external services like Elasticsearch.
cd $Env:GOPATH/src/github.com/elastic/beats/winlogbeat
go test -v ./...
go test -c
nosetests.exe -v tests\system
go build
To make tests repeatable you will want to delete the state persisted by Winlogbeat.
rm .\data\.winlogbeat.yml
.\winlogbeat.exe -c winlogbeat.yml -e -d eventlog -E output.elasticsearch.enabled=false -E output.file.path=output -E output.file.filename=events.json
If you have Elasticsearch running on the VirtualBox host machine you can access it at 10.0.2.2.
.\winlogbeat.exe -c winlogbeat.yml -e -d eventlog -E "output.elasticsearch.hosts=[http://10.0.2.2:9200]"