elasticsearch - How to create a line chart based upon column value instead of column name in Kibana -
in elasticsearch have sample data, against visualize line charts in kibana 4. samples in elasticsearch this:
"_id": "avhny_dxcw7axk5bvieo", "timestamp": "2016-11-11t05:39:10.5844951z", "analyticsource": [ { "analyticid": "a", "analyticunit": "sec", "analyticvalue": 0.22743704915046692 }, { "analyticid": "b", "analyticunit": "sec", "analyticvalue": 0.14946113526821136 }] and sample:
"_id": "avhnxnjscw7axk5bu-tl", "timestamp": "2016-11-11t05:40:10.5954951z", "analyticsource": [ { "analyticid": "a", "analyticunit": "sec", "analyticvalue": 0.20143736898899078 }, { "analyticid": "b", "analyticunit": "sec", "analyticvalue": 0.09747125953435898 }] for kibana plot plot according column id , in case single line chart plotted analyticvalue. want plot 2 line chart in kibana a , b against timestamp. there kind of script(query) or can kibana seggregate analyticvalue according analyticid?
object array not suppported on kibana 4. have create flat mapping analyticid, analyticvalue, analyticunit columnns. aggregate on analyticid , created line chart y axis max of analyticvalue , in x axis selected date histogram time-stamp. hope helps users lands here.
Comments
Post a Comment