# Illegal unquoted character for google cloud storage input plugin

**URL:** <https://discuss.elastic.co/t/illegal-unquoted-character-for-google-cloud-storage-input-plugin/180021>\
**Category:** Logstash\
**Created:** [May 7, 2019, 3:47pm UTC](https://discuss.elastic.co/t/illegal-unquoted-character-for-google-cloud-storage-input-plugin/180021 "2019-05-07T15:47:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![msukmana](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@msukmana](https://discuss.elastic.co/u/msukmana)\
**Post date:** [May 7, 2019, 3:47pm UTC](https://discuss.elastic.co/t/illegal-unquoted-character-for-google-cloud-storage-input-plugin/180021/1 "2019-05-07T15:47:38Z")

</div>

I am trying to download stackdriver logs from my GCP bucket using logstash with this configuration:

> google\_cloud\_storage {  
> interval =\> 60  
> bucket\_id =\> "stackdriverlog-cloudraid"  
> json\_key\_file =\> "/home/boli/Documents/fullproject.json"  
> file\_matches =\> ".\*json"  
> codec =\> "json\_lines"  
> type=\> "stackdriver1"  
> }

But it returns error message like this:

> [ERROR] 2019-05-07 17:30:57.430 [[main]-pipeline-manager] pipeline - Error registering plugin {:pipeline\_id=\>"main", :plugin=\>"\<LogStash::Inputs::GoogleCloudStorage bucket\_id=\>"stackdriverlog\\-cloudraid", json\_key\_file=\>"/home/boli/Documents/fullproject.json", codec=\>\<LogStash::Codecs::JSONLines id=\>"json\_lines\_ace8fe5a-be94-4b16-ada7-afad4cffc5d5", enable\_metric=\>true, charset=\>"UTF-8", delimiter=\>"\n"\>, interval=\>60, id=\>"e10c3564ee527af63666c0e5f5d00a31a8b847132776c2537f54167c4508ba8a", type=\>"stackdriver1", file\_matches=\>".\*json", enable\_metric=\>true, file\_exclude=\>"^$", metadata\_key=\>"x-goog-meta-ls-gcs-input", delete=\>false, unpack\_gzip=\>true, temp\_directory=\>"/tmp/ls-in-gcs"\>", :error=\>"Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value\n at [Source: (FileInputStream); line: 5, column: 239]", :thread=\>"#\<Thread:0x7616b4ef run\>"}  
> [ERROR] 2019-05-07 17:30:58.160 [[main]-pipeline-manager] pipeline - Pipeline aborted due to error {:pipeline\_id=\>"main", :exception=\>com.fasterxml.jackson.core.JsonParseException: Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value

I was following [Google Cloud Storage Input Plugin | Logstash Reference [8.11] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-google_cloud_storage.html#plugins-inputs-google_cloud_storage-codec) for writing the configuration. Is there anything wrong with my configuration?

---

<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:** [June 4, 2019, 3:47pm UTC](https://discuss.elastic.co/t/illegal-unquoted-character-for-google-cloud-storage-input-plugin/180021/2 "2019-06-04T15:47:48Z")

</div>

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