logging.entries.list

POST {{baseUrl}}/v2/entries:list?$.xgafv=<string>&access_token=<string>&alt=<string>&callback=<string>&fields=<string>&key=<string>&oauth_token=<string>&prettyPrint=<boolean>&quotaUser=<string>&upload_protocol=<string>&uploadType=<string>

Lists log entries. Use this method to retrieve log entries that originated from a project/folder/organization/billing account. For ways to export log entries, see Exporting Logs (https://cloud.google.com/logging/docs/export).

Request Params

KeyDatatypeRequiredDescription
$.xgafvstringV1 error format.
access_tokenstringOAuth access token.
altstringData format for response.
callbackstringJSONP
fieldsstringSelector specifying which fields to include in a partial response.
keystringAPI key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_tokenstringOAuth 2.0 token for the current user.
prettyPrintstringReturns response with indentations and line breaks.
quotaUserstringAvailable to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocolstringUpload protocol for media (e.g. "raw", "multipart").
uploadTypestringLegacy upload protocol for media (e.g. "media", "multipart").

Request Body

{"filter"=>"<string>", "orderBy"=>"<string>", "pageSize"=>"<integer>", "pageToken"=>"<string>", "projectIds"=>["<string>", "<string>"], "resourceNames"=>["<string>", "<string>"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;entries&quot;:[{&quot;httpRequest&quot;:{&quot;cacheFillBytes&quot;:&quot;eu in&quot;,&quot;cacheHit&quot;:false,&quot;cacheLookup&quot;:false,&quot;cacheValidatedWithOriginServer&quot;:true,&quot;latency&quot;:&quot;in eiusmod do veniam anim&quot;,&quot;protocol&quot;:&quot;tempor sit&quot;,&quot;referer&quot;:&quot;amet cillum aliqua&quot;,&quot;remoteIp&quot;:&quot;consectetur enim&quot;,&quot;requestMethod&quot;:&quot;am&quot;,&quot;requestSize&quot;:&quot;ea commodo consequat dolore&quot;,&quot;requestUrl&quot;:&quot;laboris fugiat&quot;,&quot;responseSize&quot;:&quot;adipisicing&quot;,&quot;serverIp&quot;:&quot;dolore&quot;,&quot;status&quot;:79995444,&quot;userAgent&quot;:&quot;proident Ut sunt ea do&quot;},&quot;insertId&quot;:&quot;ut cupidatat Lorem irure exercitation&quot;,&quot;jsonPayload&quot;:{},&quot;labels&quot;:{},&quot;logName&quot;:&quot;quis aliquip reprehenderit sint&quot;,&quot;metadata&quot;:{&quot;systemLabels&quot;:{},&quot;userLabels&quot;:{}},&quot;operation&quot;:{&quot;first&quot;:false,&quot;id&quot;:&quot;do pariatur&quot;,&quot;last&quot;:false,&quot;producer&quot;:&quot;tempor enim eu&quot;},&quot;protoPayload&quot;:{},&quot;receiveTimestamp&quot;:&quot;consectetur irure&quot;,&quot;resource&quot;:{&quot;labels&quot;:{},&quot;type&quot;:&quot;officia minim qui magna vel&quot;},&quot;severity&quot;:&quot;ERROR&quot;,&quot;sourceLocation&quot;:{&quot;file&quot;:&quot;eiusmod magna pariatur consequat ullamco&quot;,&quot;function&quot;:&quot;sunt nisi&quot;,&quot;line&quot;:&quot;eu deserunt&quot;},&quot;spanId&quot;:&quot;irure ut aliquip&quot;,&quot;textPayload&quot;:&quot;eiusmod ad sed&quot;,&quot;timestamp&quot;:&quot;dolore l&quot;,&quot;trace&quot;:&quot;exercitation nisi&quot;,&quot;traceSampled&quot;:false},{&quot;httpRequest&quot;:{&quot;cacheFillBytes&quot;:&quot;adipisicing&quot;,&quot;cacheHit&quot;:true,&quot;cacheLookup&quot;:false,&quot;cacheValidatedWithOriginServer&quot;:true,&quot;latency&quot;:&quot;dolor elit ut&quot;,&quot;protocol&quot;:&quot;Ut proident&quot;,&quot;referer&quot;:&quot;non&quot;,&quot;remoteIp&quot;:&quot;aute&quot;,&quot;requestMethod&quot;:&quot;dolore&quot;,&quot;requestSize&quot;:&quot;minim non est&quot;,&quot;requestUrl&quot;:&quot;Lorem eu&quot;,&quot;responseSize&quot;:&quot;anim&quot;,&quot;serverIp&quot;:&quot;deserunt aute labore proident&quot;,&quot;status&quot;:10689545,&quot;userAgent&quot;:&quot;dolor enim cillum labore&quot;},&quot;insertId&quot;:&quot;commodo&quot;,&quot;jsonPayload&quot;:{},&quot;labels&quot;:{},&quot;logName&quot;:&quot;d&quot;,&quot;metadata&quot;:{&quot;systemLabels&quot;:{},&quot;userLabels&quot;:{}},&quot;operation&quot;:{&quot;first&quot;:false,&quot;id&quot;:&quot;elit incididunt&quot;,&quot;last&quot;:false,&quot;producer&quot;:&quot;Ut fugiat deserunt proident&quot;},&quot;protoPayload&quot;:{},&quot;receiveTimestamp&quot;:&quot;eiusmod in in et reprehenderit&quot;,&quot;resource&quot;:{&quot;labels&quot;:{},&quot;type&quot;:&quot;culpa qui non&quot;},&quot;severity&quot;:&quot;CRITICAL&quot;,&quot;sourceLocation&quot;:{&quot;file&quot;:&quot;sint dolore nostrud cillum esse&quot;,&quot;function&quot;:&quot;incididunt in labore&quot;,&quot;line&quot;:&quot;cillum elit&quot;},&quot;spanId&quot;:&quot;ci&quot;,&quot;textPayload&quot;:&quot;non irure ut tempor&quot;,&quot;timestamp&quot;:&quot;Duis in Ut&quot;,&quot;trace&quot;:&quot;tempor adipisicing voluptate sed dolore&quot;,&quot;traceSampled&quot;:true}],&quot;nextPageToken&quot;:&quot;exercitation mollit nulla&quot;}