How to move Data and Logs to new directory?

You can set that in elasticsearch.yml using these - https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-dir-layout.html