migrate logs to elasticsearch