I am new to the ELK stack and trying to learn how to visualize some things. I have data coming in from one of our machine tools and I would like to make a simple counter that show the amount of time the machine has been running for a given time period my document looks like this. @timestamp Nov 30, 2020 @ 18:51:11.217 @version 1 Samples.AccumulatedTime.@@data 1.98 Samples.AccumulatedTime.name p1CuttingTime Samples.AccumulatedTime.subType x:CUTTING_TIME _id IDjIG3YBNhsRe95vKY52 _index mtconnect-demo _score - _type _doc componentId Mp1 dataItemId Mp1CuttingTime deviceName OKUMA.MachiningCenterMA650-EAST deviceUUID OKUMA.MachiningCenterMA650-EAST.190056 host mt-data-01 sequence 6,829,939 timestamp Nov 30, 2020 @ 18:48:56.714 type json
I know I can get a COUNT of the p1CuttingTime but how do I get the value of the Samples.AccumulatedTime.@@data that goes along with p1CuttingTime? Any help would be appreciated as well as pointers to any tutorials on working with Visualizations
Thanks for the direction it has helped. However Samples.AccumulatedTime.@@data holds other data as well for other values. So just displaying the SUM of it doesn't give me what I want. I need to display the SUM of Samples.AccumulatedTime.@@data when Samples.AccumulatedTime.name p1CuttingTime. Not sure how to do that.
@fastxl, can you sum up all Samples.AccumulatedTime.@@data and then use Kibana's filter to include only documents with Samples.AccumulatedTime.name:p1CuttingTime ?
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.