Knowledge Base
v5.16.0
Search this version
Knowledge Base
Knowledge Base
Configuration and Settings
Errors and Troubleshooting
Features and Functionality
Licensing, Setup and Deployment
Updates, Patches and Bug Fixes
Version Upgrades
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
How to Test the Syslog Server functionality from MetaDefender Core?
Copy Markdown
Open in ChatGPT
Open in Claude
Windows
Execute this in PowerShell.
UDP Syslog
Powershell
x
$syslogServer = "<syslog_server_ip>"$syslogPort = 514$message = "<34>Test Syslog message"$udpClient = New-Object System.Net.Sockets.UdpClient$udpClient.Connect($syslogServer, $syslogPort)$encodedMessage = [System.Text.Encoding]::ASCII.GetBytes($message)$udpClient.Send($encodedMessage, $encodedMessage.Length)$udpClient.Close()Write-Output "Syslog message sent."TCP Syslog
Powershell
$syslogServer = "<syslog_server_ip>"$syslogPort = 601$message = "<34>Test Syslog message`n"$tcpClient = New-Object System.Net.Sockets.TcpClient($syslogServer, $syslogPort)$stream = $tcpClient.GetStream()$writer = New-Object System.IO.StreamWriter($stream)$writer.WriteLine($message)$writer.Flush()$writer.Close()$stream.Close()$tcpClient.Close()Write-Output "Syslog message sent."Linux
Using the Linux command below.
UDP Syslog
Bash
echo "<34>Test Syslog message" | nc -u -w1 <syslog_server_ip> 514TCP Syslog
Bash
echo "<34>Test Syslog message" | nc <syslog_server_ip> 601If Further Assistance is required, please proceed to log a support case or chatting with our support engineer.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message
