Slackbot
09/21/2022, 2:44 PMGian Merlino
09/21/2022, 2:55 PMGian Merlino
09/21/2022, 2:55 PMGian Merlino
09/21/2022, 2:55 PMJulian Reyes
09/21/2022, 3:08 PMGian Merlino
09/21/2022, 3:26 PMGian Merlino
09/21/2022, 3:27 PMJulian Reyes
09/21/2022, 3:27 PMGian Merlino
09/21/2022, 3:27 PMGian Merlino
09/21/2022, 3:28 PMJulian Reyes
09/21/2022, 3:28 PMJulian Reyes
09/21/2022, 5:05 PMDRUID_LOG4J: '<?xml version="1.0" encoding="UTF-8" ?><Configuration status="WARN"><Appenders><Console name="Console" target="SYSTEM_OUT"><PatternLayout pattern="%d{ISO8601} %p [%t] %c - %m%n"/></Console></Appenders><Loggers><Root level="info"><AppenderRef ref="Console"/></Root><Logger name="org.apache.druid.jetty.RequestLog" additivity="false" level="DEBUG"><AppenderRef ref="Console"/></Logger></Loggers></Configuration>'
and getting logs in k9sSergio Ferragut
09/21/2022, 5:10 PMdockerfile and it seems to me that with default values.yaml it is not defining the setting druid.node.type by default (which should probably change) but given this line in the dockerfile's entrypoint script druid.sh, I think you can update your values.yaml for the `helm install`:
As a workaround, I think if you add the config item to each service section, you should get the correct naming for each log as in:
historical:
config:
druid_node_type: historicalJulian Reyes
09/21/2022, 5:12 PMdruid_node_typeJulian Reyes
09/21/2022, 5:17 PMDRUID_LOG4J , would k9s pick up logs and will also datadog collect logs?Sergio Ferragut
09/21/2022, 5:40 PMJulian Reyes
09/21/2022, 5:40 PMDRUID_LOG4J I see logs in k9s, but I can try adding the node type and seeSergio Ferragut
09/21/2022, 5:41 PMJulian Reyes
09/21/2022, 5:43 PMJulian Reyes
09/21/2022, 5:54 PMdruid_node_type: 'coordinator', but logs in the dir keeps showing up as ${sys:druid.node.type}.logSergio Ferragut
09/21/2022, 5:56 PMJulian Reyes
09/21/2022, 5:56 PMcoordinator: {
replicaCount: 3,
config: {
druid_node_type: 'coordinator',
DRUID_XMX: '8200m',
DRUID_XMS: '8200m',
druid_coordinator_period: 'PT60S',
druid_coordinator_startDelay: 'PT90S',
druid_coordinator_loadqueuepeon_type: 'http',
druid_coordinator_balancer_strategy: 'cachingCost',
druid_coordinator_kill_pendingSegments_on: 'true',
druid_coordinator_loadqueuepeon_http_batchSize: '8'
}
},Julian Reyes
09/21/2022, 5:58 PMdruid.node.type=coordinatorJulian Reyes
09/21/2022, 5:58 PMSergio Ferragut
09/21/2022, 6:00 PMSergio Ferragut
09/21/2022, 6:23 PMdruid.sh is what writes it out to that file and in the former it is defined as part of the java startup command as a -D parameter. I'm wondering whether the runtime.properties files is begin used... can you share the section of the coordinator log where it outputs the system properties, in a standalone example I see this:
2022-09-19T16:17:22,191 INFO [main] org.apache.druid.cli.CliCoordinator - * druid.monitoring.monitors: ["org.apache.druid.java.util.metrics.JvmMonitor"]
2022-09-19T16:17:22,191 INFO [main] org.apache.druid.cli.CliCoordinator - * druid.node.type: coordinator-overlord
2022-09-19T16:17:22,191 INFO [main] org.apache.druid.cli.CliCoordinator - * druid.plaintextPort: 8081
Do you see druid.node.type among them?Julian Reyes
09/21/2022, 7:02 PM