I am trying to visualize a Data Table where there is a field called transactiondata which is a column in the table and the column contains values like Key1:Value1.
What I need to do is I need to display only value Part for each key.
Suppose there are 10 different values for each key, I only want to see the values for key1 in a table format.
So, I have tried using filters in bucket aggregation when I am trying to write the query in filter field which is transactiondata: Key1:Value2, it is giving me error.
Please help me on this. I am looking forward to you guys.
// I created a scripted field "mykey" that looked like this
doc['transactiondata.keyword'].value.splitOnToken(':')[0]
// And I created a scripted field "myvalue" that looked like this
doc['transactiondata.keyword'].value.splitOnToken(':')[0]
Then, I created a data table with a filter: mykey:key1 and just displayed a terms aggregation on myvalue.
Thanks Chris for helping. I will try this and let you know.
Btw by Creating a datatable, did you mean Data Table visualization where you added the filter and used terms aggregation?
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.