Thanks to @flash1293
So your mapping is looking fine but it seems like there is no
@timefieldfield - this is used by default to aggregate over time in Timelion. If you want to use a different field for the time axis (as in this example), you have to specify it as thetimefieldparameter in the.es()function:.es(interval=1d, timefield='start_at', index=session_data, metric='cardinality:player_id').label('Unique Players Logged')Another detail: It's recommended to put the metric into quotes (as in the example above) to avoid conflicts with reserved characters in the field name.
See also Timelion | Kibana Guide [8.11] | Elastic about more details.