Search code examples
sessionstatisticskibanafluentd

Calculate session duration in Kibana


With Kibana I have managed to visualize continious requests in a linear chart by:

  • using a line chart
  • Y-axis: Aggregation: Count
  • X-axis: Date Histogram with field @timestamp
  • Split Lines: Sub Aggregation: Terms Field IP address

Now I would like to get the average, minimum and maximum session duration out of this. Is this possible, I haven't quite figured out the right approach to take it from here.

enter image description here


Solution

  • You need to create dashboard to see all this data on one screen.

    1. Save this visualization
    2. Change Y-axis aggregation type to "Average"
    3. Save this visualization with another name
    4. Change Y-axis aggregation type to "Minimum"
    5. Save this visualization with another name
    6. Change Y-axis aggregation type to "Maximum"
    7. Save this visualization with another name
    8. Create Dashboard with all saved visualizations.