Open navigation

Set-TPHubRemoteSyslogAddress

Desription

Syntax

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>]
ParameterDescription
-RemoteSyslogAddressURL 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

 ThinPrint Hub's PowerShell cmdlet Set-TPHubRemoteSyslogAddress: Specifying URL directly and enable log forwarding


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

ThinPrint Hub's PowerShell cmdlet Set-TPHubRemoteSyslogAddress: Specifying URL indirectly and enable log forwarding


Example 3: Disabling log forwarding

$URLempty $Syslog.RemoteSyslogAddress = $URLempty
Set-TPHubRemoteSyslogAddress -InputObject $Syslog
Get-TPHubRemoteSyslogAddress

ThinPrint Hub's PowerShell cmdlet Set-TPHubRemoteSyslogAddress: Disabling log forwarding


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.