Aliasing fields in visualizations


(Luvpreet Singh) #1

I have a Data Table visualization.

The statuses have there own values,

1 - Net Banking
2 - Cash On delivery
3 - Mobile payment

Is there any way I can alias these values to their meaning in this data table ?


(Tat Dat Pham) #2

You can use translate plugin for this data (in logstash).

filter {
  translate {
    dictionary => [ "1", "Net Banking",
                    "2", "Cash On delivery",
                    "3", "Mobile payment" ]
  }
}

Or another way, you can use script field in kibana

 if (doc['payment_status'].value =1) { 
    return "Net Banking";
}
return "";

(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.