How to blow a query when elasticsearch first runs?

How to blow a query when elasticsearch first runs???

I need to automatically register policies, templates, security, etc. when elasticsearch is first run.
I do not think there is a function that can do it automatically in the first operation. What do you usually do?

Is it for test purposes?
What kind of queries do you want to block? Queries ran by your application? Or ran by any user on the command line?

May be you can create an account with a wrong password and once everything is set, change the user password to the right one so he can authenticate on the system?

I want to use it in a container environment.
i want the es container to be created for the first time and to automatically make those settings.

Is that for test purpose or for production?

I mean that if it's for production purpose, I guess that the disks are persistent and that all those steps need to be done only once.

Could you describe the use case?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.