I'm working with ES and I need a query that returns the difference between two datetime (mysql timediff
), but have not found any function of ES to do that. Someone who can help me?
MySQL query:
SELECT SEC_TO_TIME(
AVG(
TIME_TO_SEC(
TIMEDIFF(r.acctstoptime,r.acctstarttime)
)
)
) as average_access
FROM radacct