< Back

Get-GcLogSink

Mon Jan 13, 2020 11:17 pm

NAME Get-GcLogSink



SYNOPSIS

Retrieves Stackdriver Log Sinks.





SYNTAX

Get-GcLogSink [-Project <string>] [[-Sink] <string[]>] [<CommonParameters>]





DESCRIPTION

Retrieves one or more Stackdriver Log Sinks. If -Sink is not used, the cmdlet will return all the sinks under the

specified project (default project if -Project is not used). Otherwise, the cmdlet will return a list of sinks

matching the sink names specified in -Sink and will raise an error for any sinks that cannot be found.





PARAMETERS

-Project <string>

The project to check for sinks in. If not set via PowerShell parameter processing, will default to the Cloud

SDK's DefaultProject property.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Sink <string[]>

The names of the sinks to be retrieved.



Required? false

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <string[]>

The names of the sinks to be retrieved.



This is an alias of the Sink parameter.



Required? false

Position? 0

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



OUTPUTS



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



PS C:\\> Get-GcLogSink



This command retrieves all sinks in the default project.

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



PS C:\\> Get-GcLogSink -Sink "sink1", "sink2" -Project "my-project"



This command retrieves 2 sinks ("sink1" and "sink2") in the project "my-project".



RELATED LINKS

[Log Sinks] (https://cloud.google.com/logging/docs/a ... bout_sinks)