Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Guys,
I've data more than 60000 in elasticsearch, how can i connect using REST api from qlik sense to elasticsearch? Did anyone had tried it?
Thanks,
adam
It's possible. You have to use the scroll api.
After each post to the .../_search/scroll end point you need to check if you received any data so you can stop when you've retrieved all the data.
Hi @Gysbert_Wassenaar ,
Thank for your answer. I tried to understand about scroll but i still don't understand how it works in API.
GET /myIndex/_search?size=60000&scroll=5m
I tried like this and still error. Can you explain with example?
Thanks,
Adam
You set up the scroll with the first request. That gives you back the first set of results and the scrollid you need to use for subsequent requests. Clearer than the documentation I pointed out I can't make it. Try with curl, postman or insomnia first before trying it with the Qlik rest connector.
Hi Gysbert,
I'm trying to extract data from elasticsearch using the Qlik Sense rest API but when I test the connection to elasticsearch the response is an HTTP protocol error 408 (see attached). I can use other tools on the qlik server and can pull the data (postman, curl etc.) You seem to have not had an issue pulling data so wondering what my issue could be? Qlik are not being very help in helping me troubleshoot...
any help greatly appreciated.
regards
Doug