https://pinot.apache.org/ logo
j

Jonathan Meyer

04/01/2021, 2:43 PM
Hello 👋 Can you confirm Pinot Controller uses
/opt/pinot/conf/pinot-controller-log4j2.xml
for logging configuration ? (without override from JAVA_OPTS) Thanks !
d

Daniel Lavoie

04/01/2021, 2:45 PM
In which context? With the helm chart?
j

Jonathan Meyer

04/01/2021, 2:45 PM
Yes
d

Daniel Lavoie

04/01/2021, 2:46 PM
It’s going to use
.Values.controller.log4j2ConfFile
👍 1
Which is defaulted to
/opt/pinot/conf/pinot-controller-log4j2.xml
, so yes
j

Jonathan Meyer

04/01/2021, 2:46 PM
Great, thanks for the confirmation @Daniel Lavoie !
d

Daniel Lavoie

04/01/2021, 2:47 PM
this will output all into to a
pinotController.log
inside the home of the pod.
j

Jonathan Meyer

04/01/2021, 2:47 PM
Yep, our logging system is picking them up 🙂 What about the default log level ? Seems like it is WARN as I can't see any INFO level logs
d

Daniel Lavoie

04/01/2021, 2:47 PM
FYI, that’s not ideal for multiple reasons, first the default flush seems not ok, and we’ll want everything redirected to stdout by default at some point.
1
WARN is redirected to stdout, INFO to the internal file.
j

Jonathan Meyer

04/01/2021, 2:49 PM
So we need to tail both stdout and the internal file to get all logs ?
d

Daniel Lavoie

04/01/2021, 2:50 PM
Yeah
Which isn’t ideal, looking at the chart and there isn’t much room for customizing the log4j configs
Might be helpful to have the log4j config mounted as editable configmaps
j

Jonathan Meyer

04/01/2021, 2:52 PM
I see, thanks for all the info and suggestions - I'll see how I can work around that 🙂