I have some TSVB data tables (Kibana 7.4.2) I'm trying to modify to use a dynamically selected interval (timepicker range) for, and I can't find how to properly call this interval in Painless.
I currently have network data in a data table:
I am calculating the averages using a static (or otherwise nondescript) interval: params._interval
.
The issue with this is that it does not dynamically scale with the timepicker:
My code to calculate the averages uses a painless script which references that params._interval
:
(params.bytes * 8) / (params._interval / 1000)
What can I do to make these calculations use the timepicker range, rather than the interval? I desire to change the 'Data timerange mode' to 'Entire time range', however that leaves me with no results, presumably due to the 'entire time range' not being a valid params._interval
: