Add new column type in data table


(Hugo) #1

Hi,
I need to have a new column in the data table that is a simple arithmetic formula of two other metrics (Col C = Col B / Col A). If this is not possible at this time can someone point me to the right place in the source code so I can try to implement it?

For instance:
Col A | Col B | Col C
10 | 5 | 0,5

Thanks.
Best regards,
Hugo


(Spencer Alger) #2

You can probably use a scripted field to do this, but there isn't any way to create a scritped column right now.


(Hugo) #3

Hi Spencer,
Thanks for the answer but I cannot use scripted field because the formula is done using the aggregation results and not the actual fields.

Best regards,
Hugo


(Kaib) #4

you need to wait until kibana supports pipeline aggregations i guess: link


(Hugo) #5

Hi kaib,
Thanks for the answer.
Can anyone tell me in the source code where the data table is located so I can fork it and try to change it and add this new column type?

Thanks.
Best regards,
Hugo


(Spencer Alger) #6

The table vis is implemented as a plugin, but it relies on several UI elements exposed by kibana:


(Hugo) #7

Hi Spencer,
Thanks.
I will check the code!

Best regards,
Hugo


(system) #8