elastic / timelion

Timelion was absorbed into Kibana 5. Don't use this. Time series composer for Elasticsearch and beyond.
Other
347 stars 79 forks source link

Auto detect timefield #171

Open rashidkpc opened 8 years ago

rashidkpc commented 8 years ago

Replaces https://github.com/elastic/timelion/issues/169

Phase 1 Timelion's .es() should be capable of matching the index parameter to a Kibana index pattern and should be able to extract the timefield from it, negating the requirement of passing the timefield parameter in the case that the user already has an index pattern.

Phase 2 The .es() function should be able to check the index's mapping for a date field. If there is only 1 it should use it as the timefield in the case that the user did not pass a timefield.