title: How to set field suffix as alias in Grafana with Elasticsearch
body: <p>I have graphs defined from Elasticsearch source with long field names such as private_data.systemMetrics.systemData.cpu.usage_user. I would like to set alias for the cpu usage fields that will display only the field name suffixes, in above example, usage_user.
  Using Grafana v4.5.2</p>
  
  <p><img src="https://i.stack.imgur.com/tNpSs.png" alt="CPU Usage graph with alias set to {{field}}:{{metric}}"> </p>
  
  <p>I found a way to display a short alias but it is costly. I split the query with multiple fields into a list of queries, each on a single field with explicit alias.</p>
  
  <p>Is there a better way to do it?</p>
  
  <p><img src="https://i.stack.imgur.com/4DduO.png" alt="CPU Usage graph with multiple queries and explicit alias"></p>