Hi, I understand the Flexmonster provide integration feature with Elasticsearch. Do it work with Elastic impersonate feature? if yes, how do i pass the command to Flexmonster?
Below is the link to Elastic impersonate feature
https://www.elastic.co/guide/en/elasticsearch/reference/current/run-as-privilege.html
Hello, Helen,
Thank you for your question.
Flexmonster provides the possibility to specify custom request headers.
This is achieved via the requestHeaders
property of the dataSource
object, for example:
var pivot = new Flexmonster({
container: "#pivot-container",
componentFolder: "https://cdn.flexmonster.com/",
report: {
"dataSource": {
type: "elasticsearch",
node: "your_URL_string_for_connection",
index: "your_index",
requestHeaders: {
'es-security-runas-user': "jacknich"
}
}
}
});
More information about the requestHeaders
property is available in the Data Source Object guide.
This way you could pass the request header that is required for the Elasticsearch impersonation feature.
Please let us know if this works for you.
Looking forward to your response.
Kind regards,
Vera
Hello, Helen,
We would like to kindly take an interest in whether the provided solution worked for you. Did the requestHeaders
property work fine for you?
If any questions or difficulties remain, please do let us know - we are happy to help.
Looking forward to your reply.
Kind regards,
Vera
Hello, Helen,
We are wondering if it worked to connect Flexmonster to Elasticsearch using the impersonate feature. Did everything work fine for you?
Please share your thoughts with us.
Looking forward to your feedback.
Kind regards,
Vera