Hallo everyone. I need heep in kibana. I want to write one Scripted field that converts Sessionlogontime(string) and gives me the result per day. i would be very proud if someone can offer me a solution. It is calculated like this in splunk
latest(SessionLogonTime) as BootTime
latest(HwModel) as HwModel
splitrow
host as Host
filter host in ("*")
I'm not familiar with splunk, so maybe I'm missing some parts of your question. There is an important difference in the way you're asking your question vs how I think about the question: the ELK stack is optimized for fast performance on pre-indexed data, and so it will be slower if you want to calculate something that isn't pre-indexed.
So basically my recommendation is, if you can, you should be indexing "uptime" as a numeric field.
If you can't, then you still have options, but there are tradeoffs:
Use the Elasticsearch transforms to find duration, like this example
Don't calculate durations on the client-side, but use the top hits metric to find the "latest value" per status
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.