Illegal unquoted character for google cloud storage input plugin

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 for writing the configuration. Is there anything wrong with my configuration?

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