Set-SyslogServerSet-SyslogServer

概要Synopsis

設定 syslog 伺服器端點。Sets the syslog server endpoint.

語法Syntax

Set-SyslogServer [-Remove] [[-ServerName] <Object>] [-NoEncryption] [-SkipCertificateCheck] [-UseUDP]
 [-SkipCNCheck] [[-ServerPort] <Object>] [-AsJob]

範例Examples

範例 1Example 1

Set-SyslogServer -ServerName <FQDN or IP address of Syslog server>

範例 2Example 2

-NoEncryption

範例 3Example 3

-SkipCertificateCheck

範例 4Example 4

-SkipCNCheck

範例 5Example 5

-UseUDP

範例 6Example 6

Set-SyslogServer -Remove

參數Parameters

-ServerName-ServerName

Syslog 伺服器的 FQDN 或 IPv4 位址。The FQDN or IPv4 Address of syslog server. 若沒有任何其他參數,預設通訊協定將是已啟用加密、憑證驗證、憑證名稱檢查的 TCP。Without any other parameter, default protocol is TCP with enabled encryption; Certificate validation; Certificate name check.

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ServerPort-ServerPort

Syslog 伺服器的伺服器連接埠。The server port of the Syslog server.

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-NoEncryption-NoEncryption

如果要停用 TCP 流量的加密,請指定 NoEncryption。Specify NoEncryption if desire to disable encryption for TCP traffic.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-SkipCNCheck-SkipCNCheck

如果要略過憑證名稱的檢查,請指定 SkipCNCheck。Specify SkipCNCheck if desire to skip checking certificate name.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-SkipCertificateCheck-SkipCertificateCheck

如果要略過 Syslog 伺服器憑證的檢查,請指定 SkipCertificateCheck。Specify SkipCertificateCheck if desire to skip checking Syslog Server certificate.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-UseUDP-UseUDP

如果 Syslog 伺服器使用 UDP 通訊協定,請指定 UseUDP。Specify UseUDP if Syslog server uses UDP protocol.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Remove-Remove

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-AsJob-AsJob

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

後續步驟Next steps

若要了解如何存取和使用具有特殊權限的端點,請參閱使用 Azure Stack Hub 中具有特殊權限的端點For information on how to access and use the privileged endpoint, see Use the privileged endpoint in Azure Stack Hub.