# Input / filter plugin for Google bigquery

**URL:** https://discuss.elastic.co/t/input-filter-plugin-for-google-bigquery/179277
**Category:** Logstash
**Created:** [May 2, 2019, 5:42am UTC](https://discuss.elastic.co/t/input-filter-plugin-for-google-bigquery/179277 "2019-05-02T05:42:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Praneet\_Khandelwal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/praneet_khandelwal/32/40565_2.png) [@Praneet\_Khandelwal](https://discuss.elastic.co/u/Praneet_Khandelwal)
#### Post date: [May 2, 2019, 5:42am UTC](https://discuss.elastic.co/t/input-filter-plugin-for-google-bigquery/179277/1 "2019-05-02T05:42:02Z")

</div>

I am running a logstash instance which is supposed to receive data from Google BigQuery. The issue I am facing is that I need to somehow map the data coming with the schema and create a document by combining them. Is there a input or maybe a filter plugin that helps me do that.  
Example data:

```auto
    {
        "f": [
          {
            "v": {
              "f": [
                {
                  "v": "1556330454800"
                },
                {
                  "v": "15452"
                },
                {
                  "v": "true"
                }
              ]
            }
          }
       ]
    }

```

And the corresponding schema:

```auto
    [
      {
        "name": "info",
        "type": "RECORD",
        "mode": "REQUIRED",
        "fields": [
          {
            "name": "stamp_usec",
            "type": "INTEGER",
            "mode": "REQUIRED"
          },
          {
            "name": "time_usec",
            "type": "INTEGER",
            "mode": "NULLABLE"
          },
          {
            "name": "status",
            "type": "BOOLEAN",
            "mode": "REQUIRED"
          }
        ]
      }
    ]

```

I would like the final document to contain the field name along with its corresponding value in a new json.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 30, 2019, 5:50am UTC](https://discuss.elastic.co/t/input-filter-plugin-for-google-bigquery/179277/2 "2019-05-30T05:50:17Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
