mikeokslonger
mikeokslonger

Reputation: 11

Using Timelion in ElasticSearch/Kibana 5.0

I'm trying to visualize a timeseries in Timelion. I have a few hundred datapoints in elasticsearch with this sort of format - I've manually removed some fields which I never meant to use in the timeseries plot.

        "_index": "foo-2016-11-06",
        "_type": "bar",
        "_id": "7239171989271733678",
        "_score": 1,
        "_source": {
           "timestamp": "2016-11-06T15:27:37.123581+00:00",
           "rank": 2,
        }

What I want is to quite simply plot the change in rank over time. I found this post Kibana Timelion plugin how to specify a field in the elastic search which seems to describe the same thing and I understand I should be able to just do .es(metric='sum:rank').

My problem is that no matter how I define my timelion query (even just calling .es(*)), I end up just getting a horizontal line where y=0.

timelion

Things I've tried so far:

All of them give me the same outcome which you can see in the attached picture. Does anyone have any idea what might be going on here?

Upvotes: 1

Views: 1733

Answers (1)

Itay Katz
Itay Katz

Reputation: 166

Set the timelion.json as above:

{
        "quandl": {
            "key": ""
        },
        "es": {
            "timefield": "timestamp",
            "default_index": "_all",
            "allow_url_parameter": false
        },
        "graphite": {
            "url": "https://www.hostedgraphite.com/UID/ACCESS_KEY/graphite"
        },
        "default_interval": "1h",
        "max_buckets": 2000
}

set the granularity to 'Auto' and use the above Timelion query:.es(index='foo-2016-11-06', metric='max:rank').

Upvotes: 0

Related Questions