Skip to content

Commit

Permalink
Update Syslog-ExecutionLogger.psm1
Browse files Browse the repository at this point in the history
Most Log Collectors expect single line JSON values. So omitting whitespace in Syslog-ExecutionLogger
  • Loading branch information
cyberbuff authored Nov 8, 2023
1 parent b7863c2 commit 13e4f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Public/Syslog-ExecutionLogger.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function Write-ExecutionLog($startTime, $stopTime, $technique, $testNum, $testNa

# send syslog message if a syslog server is defined in Public/config.ps1
if ([bool]$artConfig.syslogServer -and [bool]$artConfig.syslogPort) {
$jsonMsg = $msg | ConvertTo-Json
$jsonMsg = $msg | ConvertTo-Json -Compress
Send-SyslogMessage -Server $artConfig.syslogServer -Port $artConfig.syslogPort -Message $jsonMsg -Severity "Informational" -Facility "daemon" -Transport $artConfig.syslogProtocol
}
}
Expand Down

0 comments on commit 13e4f70

Please sign in to comment.