Which license do you consider an OSS licensed elasticsearch?
If you don't use any of the x-pack features (which used to be paid) you're all good.
[1] : https://www.elastic.co/blog/licensing-change