I am setting path.data and path.log file as below in elasticsearch.yml file. Can someone please confirm if the directory "/opt/elasticsearch/data" and "/opt/elasticsearch/log" should pre-exists in that path Or it will be created by default once elasticsearch application will be started.
path.data: /opt/elasticsearch/data
path.log: /opt/elasticsearch/log