Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Messages are not published to PubSub when using the google_cloud_storage input plugin. #21

Open
binaryninja opened this issue May 12, 2020 · 0 comments

Comments

@binaryninja
Copy link

Problem: Messages are not published to PubSub properly when using the google_cloud_storage input plugin. Messages are published fine when using file{} as the input source.

Steps to reproduce:
The following config file will reproduce the condition:

input {
google_cloud_storage {
interval => 30
bucket_id => "redacted"
file_matches => "log.txt"
json_key_file => "/etc/logstash/service_account_key.json"
}
}

output {
google_pubsub {
project_id => "redacted"
topic => "record_processing"
json_key_file => "/etc/logstash/service_account_key.json"
}
stdout { codec => rubydebug }
}

I can tell the contents of log.txt are being processed and I can even see the following debug message:

[DEBUG] 2020-05-12 09:24:22.741 [[main]>worker15] googlepubsub - Sending message {"message":"{"timestamp":"1586767575","name":"zzz-XXX.domain.com","type":"a","value":"123.44.67.89"}\n","@Version":"1","@timestamp":"2020-05-12T13:24:22.491Z"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant