Full name: projects.locations.instances.logProcessingPipelines.fetchSampleLogsByStreams
logProcessingPipelines.fetchSampleLogsByStreams previews sample unprocessed logs for a given log processing pipeline.
HTTP request
POST https://chronicle.africa-south1.rep.googleapis.com/v1alpha/{parent}/logProcessingPipelines:fetchSampleLogsByStreams 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
],
"logs": [
{
object ( |
| Fields | |
|---|---|
sampleLogs[] |
The sample logs. This field is deprecated. Please use the structured A base64-encoded string. |
logs[] |
Sample logs for the requested streams. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.