Example 1: Specify URL directly and enable log forwarding
Example 2: Specify URL indirectly and enable log forwarding
Example 3: Disable log forwarding
Desription
You can specify the address of a remote syslog server to send logs to it via TCP or UDP.
Example (for Kiwi syslog server):
tcp://192.168.149.222:1468
To disable log forwarding, specify an empty value.
Syntax
Set-TPHubRemoteSyslogAddress [-RemoteSyslogAddress] <string> [-Proxy <string>]
or:
Set-TPHubRemoteSyslogAddress [-InputObject] <LogConfig> [-Proxy <string>]
Parameter | Description |
-RemoteSyslogAddress | URL des Syslog-Servers, z. B. tcp://192.168.149.222:1468 |
-InputObject | Übergabe der URL mit Hilfe einer Variablen |
-Proxy | • optional (from firmware version 1.1): proxy server address • can also be specified globally using Set-TPHubProxy |
Example 1: Specifying URL directly and enable log forwarding
Set-TPHubRemoteSyslogAddress [-RemoteSyslogAddress] tcp://192.168.149.222:1468 Get-TPHubRemoteSyslogAddress
Example 2: Specifying URL indirectly and enable log forwarding
$URL = "tcp://192.168.149.222:1468" $Syslog = Get-TPHubRemoteSyslogAddress $Syslog $Syslog.RemoteSyslogAddress = $URL Set-TPHubRemoteSyslogAddress -InputObject $Syslog Get-TPHubRemoteSyslogAddress
Example 3: Disabling log forwarding
$URLempty $Syslog.RemoteSyslogAddress = $URLempty Set-TPHubRemoteSyslogAddress -InputObject $Syslog Get-TPHubRemoteSyslogAddress