We are using Kibana 4 to display usage statistics for our tools by tagging log entries with a "stats" flag.
This allows us to show ie tool A was executed 15 times in the last 60 minutes. Now using this tool saves time ie for tool A it saves users 3 minutes.
So I would like to show in another graph how many minutes were saved ie we saved 45 minutes in the last 60 minutes to show the return on investment in realtime for a particular tool.
Is there anyway to do this in ElasticSearch or Kibana (ie have a calculated field which multiplies by a fixed value based on the specific tool)? It would be great if the answer would provide a dynamic way of doing this ie a calculated field rather then adding redundant information to millions of past and future records.
Thanks, Patrick
Go to the Options tab. Select Data Formatter > Percent. Select Stacked > Percent.
TSVB is a set of visualization types that you configure and display on dashboards. With TSVB, you can: Combine an infinite number of aggregations to display your data. Annotate time series data with timestamped events from an Elasticsearch index.
Kibana 4 supports scripted fields. You can add calculated fields and use them in visualizations. Scripted fields use the Lucene expression syntax.
From Kibana documentation:
You can reference any single value numeric field in your expressions, for example:
doc['field_name'].value To create a scripted field:
Assuming you are using Kibana 3, you could store the time the tool saves in each log event.
{tool: "A", timeSaved: 3}
And then in Kibana you can use a histogram panel and use "total" for the chart values:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With