< Back

Connect-LogInsight

Sat Jan 18, 2020 9:52 am

NAME Connect-LogInsight



SYNOPSIS

Connect to a Log Insight server





SYNTAX

Connect-LogInsight -Server <String> -Credential <PSCredential> [-Proxy <String>] [-Fiddler <SwitchParameter>]

[<CommonParameters>]



Connect-LogInsight -Server <String> -User <String> -Password <String> [-Proxy <String>] [-Fiddler

<SwitchParameter>] [<CommonParameters>]





DESCRIPTION

The cmdlet opens a connection to a Log Insight server.

All communication to the Log Insight server will occur over HTTPS.

The Log Insight server information (hostname, session authentication) will be stored in the Script scope.





PARAMETERS

-Server <String>

The Log Insight server.

Can be an IP address or a FQDN



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Credential <PSCredential>

The credential to access the Log Insight server.

The credential needs at least the "User" role on the Log Insight server



Required? true

Position? named

Default value

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Proxy [<String>]

The proxy, if required, through which communication to the Log Insight server shall run.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Fiddler [<SwitchParameter>]

Hidden parameter for debugging purposes.

If this switch is set and if Fiddler is running, all communication to the Log Insight server will pass through

the

Fiddler proxy. And thus allow inspection of the packets.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-User <String>

The username to access the Log Insight server.

The credential needs at least the "User" role on the Log Insight server



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Password <String>

The password for the user to access the Log Insight server.

The credential needs at least the "User" role on the Log Insight server



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.Management.Automation.PSCredential













OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Connect-LogInsight -Server loginsight.local.lab -Credential $cred



Establish a connection to the Log Insight server with the credentials in the variable $cred.

-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Connect-LogInsight -Server loginsight.local.lab -Credential $cred -Proxy myproxy.local.lab



Establish a connection to the Log Insight server with the credentials in the variable $cred.

All traffic to the Log Insight server will pass over the proxy server at myproxy.local.lab



RELATED LINKS

Fiddler http://www.telerik.com/fiddler

vRealize Log Insight https://www.vmware.com/products/vrealize-log-insight