Filter logs in kubernetes environment

Hello Team,

I deployed Dremio app in a Kube environment and would like to have only specific logs in the stdout of the container (as all the logs from server.log, server.out, server.gc and access.log are written simultaneaously).

Is it a way to set up the logs output type ?
Thanks a lot.

Cheers

@imar You can redirect server.log to a separate file, configure via logback.xml. GC logs can be written separately and passed via JAVA OPTIONS in the helm chart

extraStartParams: >-
	-Xloggc:/opt/dremio/data/gc.log
	-XX:+UseGCLogFileRotation
	-XX:NumberOfGCLogFiles=5
	-XX:GCLogFileSize=4000k
	-XX:+PrintGCDetails
    -XX:+PrintGCTimeStamps
    -XX:+PrintGCDateStamps
	-XX:+PrintClassHistogramBeforeFullGC
	-XX:+PrintClassHistogramAfterFullGC
	-XX:+HeapDumpOnOutOfMemoryError
	-XX:HeapDumpPath=/opt/dremio/data
	-XX:+UseG1GC
	-XX:G1HeapRegionSize=32M
	-XX:MaxGCPauseMillis=500
	-XX:InitiatingHeapOccupancyPercent=25
	-XX:ErrorFile=/opt/dremio/data/hs_err_pid%p.log