Full name: projects.locations.instances.logProcessingPipelines.fetchSampleLogsByStreams
logProcessingPipelines.fetchSampleLogsByStreams previews sample unprocessed logs for a given log processing pipeline.
HTTP request
Path parameters
| Parameters | |
|---|---|
| parent | 
 Required. The parent resource of the pipeline to preview sample logs for. Format: projects/{project}/locations/{location}/instances/{instance} | 
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
| {
  "sampleLogsCount": integer,
  "streams": [
    {
      object ( | 
| Fields | |
|---|---|
| sampleLogsCount | 
 Optional. The number of sample logs to fetch. Default value is 100 logs per stream. Max value is 1000 or 4MB logs per stream. | 
| streams[] | 
 Required. The streams to preview sample logs for. | 
Response body
Response message for logProcessingPipelines.fetchSampleLogsByStreams.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| { "sampleLogs": [ string ] } | 
| Fields | |
|---|---|
| sampleLogs[] | 
 The sample logs. A base64-encoded string. | 
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.