2016-05-13 31 views
0

我從館長Elasticsearch:策展人不起作用

http://curator.readthedocs.io/en/4.0/examples.html

嘗試的基本代碼,我嘗試

import elasticsearch 
import curator 
if __name__ == '__main__': 
    client = elasticsearch.Elasticsearch([{'host': "http://localhost", 'port':9200}]) 

    ilo = curator.IndexList(client) 
    ilo.filter_by_regex(kind='prefix', value='logstash-') 
    print ilo 

,但我得到

ilo = curator.IndexList(client) 
AttributeError: 'module' object has no attribute 'IndexList' 

我是什麼失蹤?

回答