diff --git a/main.py b/main.py
index b191b41d82253258251dfbffbc2ea349180b74c2..5efc7e2eb36414f301c7c67962cff52d0e126aaa 100644
--- a/main.py
+++ b/main.py
@@ -77,8 +77,9 @@ def setup_indices(cfg):
         logging.error(e)
 
     try:
-        rep = destin_es.indices.create(cfg['reindexer']['template_name'], template)
-        logging.debug(rep)
+        logging.info('Create index %s'% cfg['reindexer']['template_name'])
+        rep = destin_es.indices.put_template(cfg['reindexer']['template_name'], template)
+        logging.info(rep)
     except Exception as e:
         logging.warning(e)