Running ES 6.2, installed latest Canvas, and I'm unable to get the timelion datasources working correctly. All data returned is 0.
I loaded a few million documents into an index, timeseries data, for Feb 2018. I'm easily able to use this data directly in timelion with a simple query such as .es(index=callrecord*,timefield=startDate) with the time selector set to last 60 days. I get a nice line graph showing the count of my records.
In Canvas, I placed a time selector, set it to last 90 days, and then dropped in a data table. Modified the code to this, using the exact same timelion query:
It's possible that the timelion function isn't using the filters context correctly. If you remove the filters part from the expression (as below), do you get data in the table?
Makes sense. I set the timeFilter's column property to startDate, confirmed the code reflected what you suggested, but it didn't change the data table's results. The data table still shows @timestamp as the first column of the results.
Debug render output of the filters | timelion output looks like this:
@Jim_Boutcher are you still running into this issue with the newest Canvas release? We tried to replicate it locally and everything seems to be working the way it should.
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.