I have implemented a custom log appender to store nifi app log to MongoDB.For this I have created a jar with custom appender code and mongodb driver etc.
And I am placing this jar inside nifi "lib" directory and all works fine.
Now I am trying to add one more custom appender for ElasticSearch, but when I add below elastic search jars to my appender jar and place it in "lib" directory nifi is failing to start.
<!-- https://mvnrepository.com/artifact/org.elasticsearch.client/elasticsearch-rest-high-level-client --><dependency><groupId>org.elasticsearch.client</groupId><artifactId>elasticsearch-rest-high-level-client</artifactId><version>7.14.2</version></dependency>
<!-- https://mvnrepository.com/artifact/org.elasticsearch/elasticsearch --><dependency><groupId>org.elasticsearch</groupId><artifactId>elasticsearch</artifactId><version>7.14.2</version></dependency>
I am not able to see any related errors in app or bootstrap log file.