I have several separate OpenSearch instances running on my server via systemd, and now I need to start a separate OpenSearch Dashboards for each.
I created a separate systemd instance and specified the startup command, but when OpenSearch Dashboards starts, it tries to use the default data directory (not the one specified for this instance).
And I get the error in dashboards log: permission denied, scandir '/usr/share/opensearch-dashboards/data'
How can I set a separate data directory for the Dashboards instance? I try use path.data in opensearch_dashboards.yml and --path.data run parameter, but nothing works
Configuration:
systemd run command
ExecStart=/usr/share/opensearch-dashboards/bin/opensearch-dashboards --config=/services/test/config/opensearch_dashboards.yml --path.data=/services/test/data_dashboards --logging.dest=/services/test/logs/dashboards.log
opensearch_dashboards.yml
server.port: 10000
server.host: "127.2.0.1"
server.name: "dashboards-test"
opensearch.hosts: ["https://127.0.0.1:10000"]
opensearch.username: "dashboards"
opensearch.password: "password"
path.data: /services/test/data_dashboards
opensearch.ssl.certificateAuthorities: ["/services/test/config/root-ca.pem"]
opensearch.ssl.verificationMode: none
opensearch_security.multitenancy.enabled: true
opensearch_security.multitenancy.tenants.preferred: ["Private","Global"]
opensearch_security.cookie.secure: true
opensearch_security.cookie.password: "{$cookie_password}"