How to disable all x-pack features in elasticsearch source code

I would want to disable all the x-pack features like ml,security,monitoring etc.. in the source code of elasticsearch.
I am using elasticsearch version 6.6.0.
Because elasticsearch opensource comes with xpack,i am having difficult time in disabling elasticsearch.
any idea how to do it.

I tried commenting out the line,
addSubProjects('', new File(rootProject.projectDir, 'x-pack'))
in settings.gradle but it doesnt seem to work.

Hi @MKU,

You can use the current installation with x-pack features disabled.
In case, in future, if you need to use x-pack features you would not need to install anything else and just enable the features that you want to use with an appropriate license. With the basic license, you get some additional features like Index lifecycle management, Data rollups etc. For comparison please see here https://www.elastic.co/subscriptions

In case you want an Apache 2.0 OSS distribution and you can download it here: https://www.elastic.co/downloads/elasticsearch-oss

Hope this helps.

Regards,
Yogesh Gaikwad

Thank you for your reply Yogesh_Gaikwad.
But I was looking for a way to disable xpack directly in source code not in the installation.

I was able to stop x-pack by commenting few lines in build.gradle .
But i dont want to remove or comment any code.
So is there any gradle command to exclude x-pack in compile time

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