Summary

The createGcsAction() mutation creates a Google Cloud Storage (GCS) action. GCS actions upload event data to a GCS bucket when an alert or scheduled search triggers.

Syntax

graphql
createGcsAction(
      input: CreateGcsAction!
   ): GCSAction!

This mutation accepts a CreateGcsAction input object and returns a GCSAction! object representing the newly created action.

Input Parameters

The mutation accepts a single CreateGcsAction input object. The following table describes the available fields:

Table: CreateGcsAction Input

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
bucketNameStringyes  added in 1.259Name of the bucket.
fileNameStringyes  added in 1.259Name of the file(s). You can use most message templates for this. See documentation for GCS action: https://library.humio.com/data-analysis/automated-actions-gcs.html.
labelsStringyes  added in 1.259Labels to categorize the action. There can be at most 10 labels with a max length of 60 characters per label.
nameStringyes  added in 1.259Name of the action.
outputFormatCloudStorageActionEventOutputFormatyes  added in 1.259Output format type for the result. Can be either NDJSON or CSV.
outputMetadataBooleanyes  added in 1.259Whether to output metadata for the result. Metadata will be output as a separate JSON file.
projectIdStringyes  added in 1.259The GCP project ID.
serviceAccountEmailStringyes  added in 1.259The email of the GCP service account to impersonate.
useProxyBooleanyes  added in 1.259Defines whether the action should use the configured HTTP proxy to send requests.
viewNameRepoOrViewNameyes  added in 1.259Name of the view of the action.