Hi,.
Thank you for your response. I managed to troubleshoot the issue. The base OS on which elasticsearch was installed was updated to Ubuntu 22. During Upgradation, many packages were lost due to which log4j was not able to start.
We Reinstalled Elasticsearch with all it's dependencies after which it started working.