Elastic search check and apparmor fix