< Back

Get-GcLog

Mon Jan 13, 2020 11:16 pm

NAME Get-GcLog



SYNOPSIS

Lists Stackdriver logs' names from a project.





SYNTAX

Get-GcLog [-Project <string>] [<CommonParameters>]





DESCRIPTION

Lists Stackdriver logs' names from a project. Will display logs' names from the default project if -Project is not

used. A log is a named collection of log entries within the project (any log mus thave at least 1 log entry). To

get log entries from a particular log, use Get-GcLogEntry cmdlet instead.





PARAMETERS

-Project <string>

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



<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-GcLog



This command gets logs from the default project.

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



PS C:\\> Get-GcLog -Project "my-project"



This command gets logs from project "my-project".



RELATED LINKS

[Logs] (https://cloud.google.com/logging/docs/b ... cepts#logs)