How can i grep the thread names using timelion query

This discusses the usage of .label() which may be helpful for you - Timelion: how generate .label() dynamically?