We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

Elasticsearch connection

Closed
Sri Thirumalai asked on June 19, 2023

Hello,
   We have started exploring Flexmonster to replace Kibana in our production system. We want to connect to the elasticsearch instance already existing for us. The question is , how to pass credentials in the javascript code? 
We have this based on the demos and documentation, but this doesn't seem to work. Any ideas how to pass username and password ? 
"dataSource": {
"type": "elasticsearch",
"node": "https://ourserver:9243",
"index": "our-index-name",
requestHeaders: {
Authorization: 'Basic uname:password'
}
},
Thanks
Sri

1 answer

Public
Sri Thirumalai June 19, 2023

some syntax issue

This question is now closed