You can see the script preview by clicking "Get help with the syntax and preview the results of your script". Could you click that and do a screenshot of the flyout that opens?
A scripted field is executed once per document. As you can see in your screenshot, every document either has up or down, but never both. A scripted field can't access values from different documents.
The example given in docs for transforming is grouping. In my case, i want to merge or group up and down (which are timestamps) into a single document.
I still trying for using elapsed filter on these but the problem is with the worker 1 in LS. Using elapsed with worker 1 is making the elapsed join start and end tags from different files of different directories. Which is giving me false time differences between start and end.
Is there a way I can make logstash reset the elapsed filter once the file is done reading and start on a new file, without joining the start tag from previous dir/file ?
If we can do this, then I could get the desired differences. Looks for of a LS issue than kibana to me!
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.