I have change mine to a different location. My new mount point is on a second drive.
Default Location
path.data: /var/lib/opensearch
After
/mnt/opensearch
Ensure OpenSearch has permissions to new directory.
chown opensearch:opensearch /mnt/opensearch
If you have the default location working all ready and need it to be move it to a different location I would suggest using Rsync and move files ( rysnc -r /origin/* /target/). And again ensure the correct permissions is on the new directory for OpenSearch. You may have to shutdown your services first.
unfortunelly, i cant find any items in mongodb, which can be related with opensearch/data folder
so i think if i can understand how folders was formed inside these path (/opt/opensearch/data/nodes/0/indices) i guess i can find answer for my question
Its not in OpenSearch, its in MongoDb and the database should be called graylog.
Graylog uses MongoDB to store data. Only metadata such as user information and stream configurations are stored here, not log data. So MongoDB will not have a huge system impact. It runs alongside the Graylog server processes and takes up minimal space.
That is from here
It explain what all the functions are for.
i see database graylog (in mongodb was created graylog, local, system db - not opensearch or else ELK items) - and i cant find any item or something else related to graylog stack
Your configuration file is set path.data: /opt/opensearch/data/
If you want to change it then set it path.data: /opt/opensearch/indices/
and restart services. You should stop all the services. Then reconfigure OpenSearch data path do not add node/0/indeices that will happen when you start everything back up. Start OpenSearch backup to take affect. Then start MongoDb back up ensure there is no errors. once completed start Graylog server up and TAIL the log file for any error. Basically with out syncing the data folder it would be like a fresh install.
If this is incorrect and you want your old data then you need to Sync it like i stated above.