I am using Spark Structured streaming with topic been subscribed as pattern:
option("subscribePattern", "topic.*")
//