GCP Bigquery
Pre-Requisite
Project in GCP
IAM Role which has access to big query service
Create Bigquery Forwarder
Navigate to
create forwarderpageSelect
bigqueryforwarderProvide the credentials for the IAM role as JSON in
json_keyfieldProvide
project_id,dataset_idandtable_idSet
table_expirationin hours which will delete the table after the specified expiration timeEnable the
create_tabletoggle to define the schema for the tableAdd required columns for the table
Provide
namefor the forwarder and clickcreate

Create Bigquery Forwarder with existing table
Select
bigqueryforwarderProvide the credentials for the IAM role as JSON in
json_keyfieldProvide
project_id, existingdataset_idand existingtable_idSet
table_expirationin hours which will delete the table after the specified expiration timeDisable the
create_tabletoggle to define the schema for the tableProvide
namefor the forwarder and clickcreate
Add Column to Biquery Table
Navigate to
forwarderspageClick
editicon in the big query forwarder for which you need to add columns in the schemaClick on
add columnto update the schema

Mapping logs to Bigquery table
When you forward your logs to BigQuery, the fields in the log will be mapped to the column in the table. By default, Apica maps the schema from the forwarder to the facet in the logs. It will insert the value for the facet as a value to the column in the table.


To change the default mapping behavior, create a forward rule for the namespace and application by renaming the facet with the column name. This will help you to manage the mappings between your log and the BigQuery table schema.
Last updated
Was this helpful?