Display different name By application for logs

I want to display the name on the error logs panel according to my query and service name but it is one name only i can show currently so need to change that accordingly to service .
Is there a way to use variables or value mapping to do that