Index files from a folder in GCS bucket using logstash GCS plugin

Hi,

I have a scenario where in the gcs bucket has multiple folders like dev and qa. Now by using logstash GCS plugin I have to read only the files from dev folder and not from qa. How is this possible?

The below config is not working..

input {
google_cloud_storage {
interval => 60
bucket_id => "my-logs-bucket"
json_key_file => "/home/user/key.json"
file_matches => "dev/.*json"
codec => "json_lines"
}
}

Can someone please help?
Thanks

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