---
title: LookerとBigQueryのデータを連携させる方法についてご紹介します
description: LookerとBigQueryを連携させる方法について解説します。
image: https://knowledge.insight-lab.co.jp/hubfs/BQ.png
---

[![BI-LAB_01](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/BI-LAB_01.png?width=800&height=220&name=BI-LAB_01.png) ![BI-LAB_01](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/BI-LAB_01.png?width=800&height=220&name=BI-LAB_01.png)](https://knowledge.insight-lab.co.jp/bi)

[![ご相談・お問い合わせ](https://hubspot-no-cache-na2-prod.s3.amazonaws.com/cta/default/5935783/interactive-160578501294.png)](https://knowledge.insight-lab.co.jp/hs/cta/wi/redirect?encryptedPayload=AVxigLIo9WcVbgTM3pVSyjBZERgCNYeeOU2mXahC9lbZs8ESYqZpbaS4JQWhoxMBQlchZWGBrq0XnySan3KNWb2hmnHDBnskoXwHWmu6geldmoBKKtQAbgRtQU32uklnihy6TTUVXWeMb%2BK6jPE2f%2FTbdcytp1SYgC2Hvwxn6da4nEed1HYm7s0lpY4U&webInteractiveContentId=160578501294&portalId=5935783)

<https://knowledge.insight-lab.co.jp/bi/lookerandbigquery#tmpmodule_159469655889724>

- サービス紹介
    - [DATA-TERASU](https://service.insight-lab.co.jp/data-terasu)
    - [DATA-CONPASS](https://service.insight-lab.co.jp/data-conpass)
    - [Data Analytics Dojo](https://service.insight-lab.co.jp/data-DOJO)
- 取り扱い製品
    - [Snowflake](https://service.insight-lab.co.jp/snowflake)
    - [dbt](https://service.insight-lab.co.jp/dbt)
    - [TROCCO](https://service.insight-lab.co.jp/TROCCO)
    - [Qlik](https://service.insight-lab.co.jp/Qlik)
    - [Vizlib](https://service.insight-lab.co.jp/Vizlib)
    - [Sisense](https://service.insight-lab.co.jp/sisense)
    - [Tableau](https://service.insight-lab.co.jp/Tableau)
- [導入事例](https://solution.insight-lab.co.jp/bi/download-case-studies)
- [お役立ち資料](https://download.insight-lab.co.jp/bi/download)
- [ニュース](https://knowledge.insight-lab.co.jp/bi/tag/%E3%83%8B%E3%83%A5%E3%83%BC%E3%82%B9)

###### 5 分で読むことができます。

# [LookerとBigQueryのデータを連携させる方法についてご紹介します](https://knowledge.insight-lab.co.jp/bi/lookerandbigquery)

 執筆者 [donut](https://knowledge.insight-lab.co.jp/bi/author/donut) 更新日時 2023年7月18日

###### Topics: [BIツール](https://knowledge.insight-lab.co.jp/bi/tag/biツール) [Looker](https://knowledge.insight-lab.co.jp/bi/tag/looker) [BigQuery](https://knowledge.insight-lab.co.jp/bi/tag/bigquery)

![LookerとBigQueryのデータを連携させる方法についてご紹介します](https://knowledge.insight-lab.co.jp/hubfs/BQ.png)

 目次

こんにちは、donutです。  
今回は、「LookerとBigQueryのデータを連携させる方法」について試してみたいと思います。

なお、Lookerについては、概要について執筆した記事もありますので、あわせてお読みいただく  
ことでより理解が深まるかと思います。

＜参考＞  
◆[次世代BIプラットフォーム「Looker」についてご紹介](https://knowledge.insight-lab.co.jp/bi/introduction-to-looker)

## BigQuery編：アカウント及び秘密鍵の作成

LookerとBigQueryを接続する場合、以下の2つの方法があります。

・サービスアカウントの作成及びJSON Credentials Certificateの作成  
・Google OAuthを利用した認証

今回は「サービスアカウントの作成およびJSON Credentials Certificateの作成」を  
利用した方法で設定していきたいと思います。  
※サービスアカウントを作成する場合、Google Cloudの管理者権限が必要です。

### BigQuery(Google Cloud)での作業：サービスアカウント作成

①「プロジェクト名」→「APIとサービス」→「認証情報」の順に展開します。

![APIとサービス](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/API%E3%81%A8%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9.png?width=203&height=322&name=API%E3%81%A8%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9.png)

②「＋認証情報を作成」→「サービスアカウント」を選択します。![APIとサービス2](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/API%E3%81%A8%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B92.png?width=745&height=237&name=API%E3%81%A8%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B92.png)

③「サービスアカウント名」と「サービスアカウントID」を入力・作成します。  
※「サービスアカウント名」を作成すると「サービスアカウントID」も自動で作成されます。

![APIとサービス3](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/API%E3%81%A8%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B93.png?width=383&height=436&name=API%E3%81%A8%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B93.png)

④「作成して続行」→「ロールを選択」をクリックし、「BigQuery」→「BigQueryデータ編集者」  
　を選択します。  
⑤「＋別のロールを追加」をクリックし、④と同じ方法で「BigQuery」を追加します。  
![APIとロール](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/API%E3%81%A8%E3%83%AD%E3%83%BC%E3%83%AB.png?width=388&height=358&name=API%E3%81%A8%E3%83%AD%E3%83%BC%E3%83%AB.png)　　![BQロール](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/BQ%E3%83%AD%E3%83%BC%E3%83%AB.png?width=389&height=357&name=BQ%E3%83%AD%E3%83%BC%E3%83%AB.png)

⑥「続行」をクリックすると、サービスアカウントのアクセス権限の画面が表示されますが、  
　ここではオプションを設定しないため、そのまま「完了」をクリックします。

![APIとサービスアカウント](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/API%E3%81%A8%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9%E3%82%A2%E3%82%AB%E3%82%A6%E3%83%B3%E3%83%88.png?width=520&height=273&name=API%E3%81%A8%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9%E3%82%A2%E3%82%AB%E3%82%A6%E3%83%B3%E3%83%88.png)

⑦下記画面のようにサービスアカウントが作成・表示されれば完了となります。

![認証情報](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/%E8%AA%8D%E8%A8%BC%E6%83%85%E5%A0%B1.png?width=793&height=262&name=%E8%AA%8D%E8%A8%BC%E6%83%85%E5%A0%B1.png)

### BigQuery(Google Cloud)での作業：秘密鍵の作成

次に、秘密鍵でもある「JSON Credentials Certificate」を作成していきます。

①サービスアカウント項目にある「編集(鉛筆アイコン)」をクリックします。

![認証情報2](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/%E8%AA%8D%E8%A8%BC%E6%83%85%E5%A0%B12.png?width=1834&height=162&name=%E8%AA%8D%E8%A8%BC%E6%83%85%E5%A0%B12.png)

②「キー」タブより「鍵を追加」→「新しい鍵を作成」の順に展開します。

![キー1](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/%E3%82%AD%E3%83%BC1.png?width=777&height=180&name=%E3%82%AD%E3%83%BC1.png)

③秘密鍵の作成ダイアログで「JSON」を指定し、「作成」をクリックします。

![キー2](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/%E3%82%AD%E3%83%BC2.png?width=491&height=324&name=%E3%82%AD%E3%83%BC2.png)

④下記ダイアログが表示され、PCにJSONファイルがダウンロードされるので、任意のフォルダへ  
　保存してください。![キー3](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/%E3%82%AD%E3%83%BC3.png?width=646&height=141&name=%E3%82%AD%E3%83%BC3.png)

⑤「キー」タブで下記のように表示されれば完了となります。![キー4](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/%E3%82%AD%E3%83%BC4.png?width=907&height=482&name=%E3%82%AD%E3%83%BC4.png)

BigQuery(Google Cloud)側での設定作業は以上となります。

## Looker編：データベースの接続設定

今度は、Lookerにおけるデータベースをはじめとした接続設定を行いたいと思います。

### Looker側での作業：データベースの設定

①Lookerを開き、「管理」→「データベース」→「接続」の順に展開します

![LookerDB](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/LookerDB.png?width=188&height=468&name=LookerDB.png)

②「Connections」画面右上の「Add Connection」をクリックします。![LookerDB2](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/LookerDB2.png?width=1661&height=89&name=LookerDB2.png)

③「データベースをLookerに接続」画面で設定を行っていきます。  
※環境によっては「Connection Settings」画面が表示される場合もありますが、  
　設定内容は同一になります。  
※「オプション設定」については既定のままで設定します。  
![LookerDB4](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/LookerDB4.png?width=622&height=542&name=LookerDB4.png)

![LookerDB5](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/LookerDB5.png?width=597&height=497&name=LookerDB5.png)

> **【各項目について】**
> 
> ・名前：任意の接続名を入力します。  
> 　　　　※Lookerのモデルファイルではこの名前で参照します。  
> ・Dialect： 「Google BigQuery Standard SQL」もしくは  
> 　　　　 　 「Google BigQuery Legacy SQL」を指定します。  
> ※今回は「Google BigQuery Standard SQL」を指定しています。  
> ・請求プロジェクト：使用データを持つ 「GoogleプロジェクトID」を入力します。  
> ※「プロジェクト名」ではありませんのでご注意ください。  
> ・Dataset：使用予定のデータセットの名前を入力します。  
> ※この部分は、BigQueryデータベース内のデータセット名と一致している  
> 　必要があります。  
> ・Service Account Email： BigQuery(Google Cloud)の手順で作成した  
> 　　　　　　　　　　　 　  サービスアカウントのメールアドレスを入力します。  
> ・認証(サービスアカウント)：BigQuery(Google Cloud)の手順で作成した  
> 　　　　　　　　　　　　　　秘密鍵(JSONファイル)をアップロードします。  
> ・Persistent Derived Tables：Lookerの永続的な派生テーブルを指します。  
> ※Lookerで定義したSQLまたはLookMLの内容を元に、接続先のDWH・DBに  
> 　実テーブルを作成する機能です。  
> 　チェックをすると、「Service Account Email」と  
> 　「Service Account JSON/P12 File(秘密鍵)」項目が追加で表示されます。  
> 　同一のファイル名を入力、JSONファイルを添付してください。  
> ・Temp Dataset：永続的派生テーブル(PDT)を書き込むためのデータセットです。  
> ※ここでは「Dataset」項目と同一名で設定します。

＜参考＞  
◆[Lookerの派生テーブル](https://cloud.google.com/looker/docs/derived-tables?hl=ja#native_derived_tables)

④「テスト」をクリックして連携可否を確認し、成功した場合は「接続」をクリックします。  
※接続に成功すると下記の画面が表示されます。

![LookerDB_success](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/LookerDB_success.png?width=1620&height=73&name=LookerDB_success.png)

⑤「Connections」画面に戻り、③で作成したデータベース右側にある「Test」をクリックし、  
　もう一度テストを実施します。※成功すると下記のような結果となります。

![LookerDB7](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/LookerDB7.png?width=810&height=81&name=LookerDB7.png)

以上をもって、LookerとBigQueryの接続を行うことができました...！

今までの作業内容を大まかにまとめると、以下の流れになります。

> 1.BigQuery(Google Cloud)でサービスアカウントを作成する
> 
> 2.BigQuery(Google Cloud)で秘密鍵(JSON)ファイルを作成する
> 
> 3.Lookerでデータベース接続の設定、接続テストを行う

今回は、LookerとBigQueryの連携・接続方法についてご紹介しましたが、次回は新規作成した  
LookML Projectで実際にモデルとビューを作成し、グラフの可視化まで行っていきたいと思います。

また、弊社ではLookerに関する資料も公開しています。  
下記ページよりダウンロードが可能ですので、あわせてご参照ください。

＜参考＞  
◆[Looker概要資料](https://download.insight-lab.co.jp/bi/wp/looker-overview)

BIツールを体験してみませんか？

INSIGHT LABでは、BIツールの無料紹介セミナー（動画）を配信しています。初めてBIツールをご利用される方を対象に、BIツールの概要や、複数あるBIツールの違いについて分かりやすくご説明いたします。

[![セミナー一覧はこちら](https://hubspot-no-cache-na2-prod.s3.amazonaws.com/cta/default/5935783/28023fdf-0a76-48bf-9815-43744ce7a2b2.png)](https://hubspot-cta-redirect-na2-prod.s3.amazonaws.com/cta/redirect/5935783/28023fdf-0a76-48bf-9815-43744ce7a2b2)

- [Tweet](https://twitter.com/share)

![donut](https://app.hubspot.com/settings/avatar/9746bf38bdd9bb3768b9935b2e6265d8)

#### 執筆者 [donut](https://knowledge.insight-lab.co.jp/bi/author/donut)

生まれも育ちも新潟県新潟市。ビッグデータを基盤としたINSIGHT LABのビジョンや新潟の活性化事業に惹かれ、入社。趣味はカフェ巡りとゲーム、水族館にも行きたいです。

###### [前の投稿](https://knowledge.insight-lab.co.jp/bi/news/gri-data-infrastructure-building-external-exchange-provisioning)

[![GRIがデータ基盤構築に関する情報交換と社外交流の場を提供](https://knowledge.insight-lab.co.jp/hubfs/Google%20Drive%20Integration/568_GRI%E3%81%8C%E3%83%87%E3%83%BC%E3%82%BF%E5%9F%BA%E7%9B%A4%E6%A7%8B%E7%AF%89%E3%81%AB%E9%96%A2%E3%81%99%E3%82%8B%E6%83%85%E5%A0%B1%E4%BA%A4%E6%8F%9B%E3%81%A8%E7%A4%BE%E5%A4%96%E4%BA%A4%E6%B5%81%E3%81%AE%E5%A0%B4%E3%82%92%E6%8F%90%E4%BE%9B.png)](https://knowledge.insight-lab.co.jp/bi/news/gri-data-infrastructure-building-external-exchange-provisioning)

###### [GRIがデータ基盤構築に関する情報交換と社外交流の場を提供](https://knowledge.insight-lab.co.jp/bi/news/gri-data-infrastructure-building-external-exchange-provisioning)

###### [次の投稿](https://knowledge.insight-lab.co.jp/bi/news/manufacturing-industry-human-resource-development-standard-seminar)

[![製造業におけるデータ人材育成について、STANDARDがセミナーを開催](https://knowledge.insight-lab.co.jp/hubfs/Google%20Drive%20Integration/565_%E8%A3%BD%E9%80%A0%E6%A5%AD%E3%81%AB%E3%81%8A%E3%81%91%E3%82%8B%E3%83%87%E3%83%BC%E3%82%BF%E4%BA%BA%E6%9D%90%E8%82%B2%E6%88%90%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%E3%80%81STANDARD%E3%81%8C%E3%82%BB%E3%83%9F%E3%83%8A%E3%83%BC%E3%82%92%E9%96%8B%E5%82%AC.png)](https://knowledge.insight-lab.co.jp/bi/news/manufacturing-industry-human-resource-development-standard-seminar)

###### [製造業におけるデータ人材育成について、STANDARDがセミナーを開催](https://knowledge.insight-lab.co.jp/bi/news/manufacturing-industry-human-resource-development-standard-seminar)

 

## 最新記事

<https://knowledge.insight-lab.co.jp/bi/databricks-update-june>

###### 5 分で読むことができます。

#### [【2026年6月版】ビジネス視点で紐解くDatabricks最新機能！現場のデータ運用が劇的に楽になるポイント解説](https://knowledge.insight-lab.co.jp/bi/databricks-update-june)

###### 2026年 7月 5日

<https://knowledge.insight-lab.co.jp/bi/ai-reality-tour-tokyo-2026>

###### 2 分で読むことができます。

#### [AI Reality Tour Tokyo 2026にブース出展いたします！](https://knowledge.insight-lab.co.jp/bi/ai-reality-tour-tokyo-2026)

###### 2026年 6月 8日

<https://knowledge.insight-lab.co.jp/bi/semantic-layer-game-kpi>

###### 7 分で読むことができます。

#### [ゲーム運営でのデータ分析を次のステージへ。KPI共通化と定義管理の効率化を実現する「セマンティックレイヤー」の重要性](https://knowledge.insight-lab.co.jp/bi/semantic-layer-game-kpi)

###### 2026年 5月 29日

##### サービス

サービス

- [DATA-CONPASS](https://service.insight-lab.co.jp/data-conpass)
- [DATA-TERASU](https://service.insight-lab.co.jp/data-terasu)
- [DATA-ANALYTICS-DOJO](https://service.insight-lab.co.jp/data-analytics-dojo)
- [Data Knowledge Library](https://knowledge.insight-lab.co.jp/)
- [セミナーアーカイブ](https://download.insight-lab.co.jp/seminar-archive)

##### データ活用ツール

データ活用ツール

- [Snowflake](https://service.insight-lab.co.jp/snowflake)
- [dbt](https://service.insight-lab.co.jp/dbt)
- [TROCCO](https://service.insight-lab.co.jp/TROCCO)
- [Qlik](https://service.insight-lab.co.jp/Qlik)
- [Vizlib](https://service.insight-lab.co.jp/Vizlib)
- [Sisense](https://service.insight-lab.co.jp/sisense)
- [Tableau](https://service.insight-lab.co.jp/Tableau)

##### 実績・事例

実績・事例

- [トヨタ自動車北海道](https://download.insight-lab.co.jp/bi/case-studies/toyota)
- [テレビ東京コミュニケーションズ](https://download.insight-lab.co.jp/bi/case-studies/tv-tokyo)
- [プラントフォーム](https://download.insight-lab.co.jp/bi/case-studies/plantform)
- [スタイルブレッド](https://download.insight-lab.co.jp/ja/bi/case-studies/style-bread)
- [協和企画](https://download.insight-lab.co.jp/bi/case-studies/kk)
- [Jマテ．カッパープロダクツ](https://listen-web.com/story/isao-tooyama2/)

##### 運営会社

運営会社

- [会社概要](https://insight-lab.co.jp/about/)
- [サイト運営責任者](https://twitter.com/Kajiwara81)
- [お問い合わせ](https://contact.insight-lab.co.jp/main)

[![Logo_yoko_C+W-1](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/Logo_yoko_C+W-1.png?width=500&height=133&name=Logo_yoko_C+W-1.png "Logo_yoko_C+W-1")](https://www.insight-lab.co.jp/)

- [個人情報保護方針/個人情報の取り扱いについて](https://insight-lab.co.jp/privacy/)

Copyright © ＩＮＳＩＧＨＴ ＬＡＢ, Inc．All Rights Reserved.

<https://twitter.com/INSIGHTLAB_INC><https://www.youtube.com/channel/UCOKNKiO4uuza4NioSZpBMhg/featured>

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "donut",
    "url" : "https://knowledge.insight-lab.co.jp/bi/author/donut"
  },
  "dateModified" : "2023-07-18T05:13:04.583Z",
  "datePublished" : "2023-07-18T05:13:04.000Z",
  "headline" : "LookerとBigQueryのデータを連携させる方法についてご紹介します",
  "image" : [ "https://knowledge.insight-lab.co.jp/hubfs/BQ.png" ],
  "mainEntityOfPage" : {
    "@id" : "https://knowledge.insight-lab.co.jp/bi/lookerandbigquery",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://knowledge.insight-lab.co.jp/hubfs/Logo_tate-2.png"
    },
    "name" : "INSIGHT LAB"
  }
}
```