Listen to multiple topics for google-pub sub plugin Logstash

My current configuration is like below:

  google_pubsub {
    project_id => "svg-nsg-log-51mx7"
    topic => "audit_logs"
    subscription => "logstash-sub-audit_logs"
    include_metadata => true
    codec => "json"
    json_key_file => "/tmp/keyfile.json"
    type => "google-pubsub-test"
  }

I have multiple topics, can I just change the configuration like topic => ["audit_logs","system_logs"] etc to get the logs from multiple topics (just as in Kafka configuration).
Else, I need to keep repeating the above with changing topic names in the input configuration?

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