Filter messages by topic