Adding the asterisks actually does do the trick in terms of filtering. It does bring new perks, of course. Data is created via a simple script. Just sending json over. The script i am testing with just now is: $Counter = 1
do {
$TestValueArray=@(
"Yes",
"No",
"No",
"No",
"No",
"Yesa",
"No",
"Yesa",
"No",
"No",
"Yesb",
"No",
"No"
)
$TestValue = $TestValueArray[(Get-Random –Minimum 0 –Maximum 12)]
$json = @"
{
"host": "Test",
"index": "dt_test",
"event": "Status Report Log Entry created for Test",
"fields": {
"Test Value": "$TestValue"
}
}
"@
$Headers = @{
Authorization = "Splunk c39425b6-380b-46f0-b705-f381b046a031"
ContentType = "application/json"
}
#write-host "Invoke-WebRequest -Uri "http://10.10.10.39:8088/services/collector" -Method "POST" -Body $json -Headers $Headers"
Invoke-WebRequest -Uri "http://10.10.10.39:8088/services/collector" -Method "POST" -Body $json -Headers $Headers | Out-Null
$counter = $counter + 1
}
until ($counter -gt 1000)
... View more