Task logs and log4j2 configuration

Hi all!

I’m having an issue. I change the log4j2.xml file to this:

<?xml version="1.0" encoding="UTF-8" ?>

And tasks logs are empty since (the ones I check from the coordinator page).

The log file created combined from all peons exists and is OK, but my question is, if I change this conf, are the other logs not saved? Is it because I deleted the ‘console’ part of this file?

Thank you!

I had this issue as well. I created a separate log4j2.xml file with a config to log to the console and then added -Dlog4j.configurationFile=file:/mypath/peon-log4j2.xml to the middleManager druid.indexer.runner.javaOpts.


Am I doing something wrong?

Well 2 messages were deleted, but Ben’s solution works.