< Back

Remove-GcLogSink

Mon Jan 13, 2020 11:40 pm

NAME Remove-GcLogSink



SYNOPSIS

Removes one or more log sinks from a project.





SYNTAX

Remove-GcLogSink [-Project <string>] [-SinkName] <string[]> [<CommonParameters>]





DESCRIPTION

Removes one or more log sinks from a project based on the name of the log. If -Project is not specified, the

default project will be used.





PARAMETERS

-Project <string>

The project to check for log 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



-SinkName <string[]>

The names of the sinks to be removed.



Required? true

Position? 0

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Name <string[]>

The names of the sinks to be removed.



This is an alias of the SinkName parameter.



Required? true

Position? 0

Default value

Accept pipeline input? true (ByPropertyName)

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.String[]

The names of the sinks to be removed.





OUTPUTS



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



PS C:\\> Remove-GcLogSink -SinkName "my-sink"



This command removes "my-sink" from the default project.

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



PS C:\\> Remove-GcLogSink -SinkName "my-sink", "my-sink2" -Project "my-project"



This command removes "my-sink" and "my-sink2" from project "my-project".



RELATED LINKS

[Log Sinks] (https://cloud.google.com/logging/docs/e ... estination)