I would like to display in a panel the lagtime between two times that come
in a message. I have no idea how to initiate it and would appreciate some
help:
If you are referring to a Kibana panel, it sounds like you want something
like the histogram panel, except you want a script to get the value instead
of a field. The date histogram facet actually supports a value_script
computation, so you should be able to make a copy of Kibana histogram
panel, and slightly modify the call to the date histogram facet to pass in
your script into the value_script field.
Thanks for your response but I am completely confused here: I am actually
stuck on what the script would be. Technically I could put in a table
format as well but the actual query is what I am unsure about; the script?
On Tuesday, March 18, 2014 7:40:17 PM UTC-4, Binh Ly wrote:
If you are referring to a Kibana panel, it sounds like you want something
like the histogram panel, except you want a script to get the value instead
of a field. The date histogram facet actually supports a value_script
computation, so you should be able to make a copy of Kibana histogram
panel, and slightly modify the call to the date histogram facet to pass in
your script into the value_script field.
If you scroll down to the bottom, there is an example for value_script. In
your case, the value_script would be something like (the result is in
milliseconds, btw, so just convert accordingly if needed):
doc['outDate'].value - doc['inDate'].value
Again this is not supported by the Histogram Panel out of the box, but you
can implement it yourself using a new panel, or by hacking the Histogram
Panel.
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.