Stork server/agent log setting.
Hello, I have some troubles with the Stork server & agent logging mechanism.
There is just no way to configure how these two handle their logs, by default they send their logs to /var/log/syslog
but the problem is on top of not being able to disable it, there are ANSI color codes in the log messages ( which I have no idea how they're getting logged in the first place ) and that is causing issues for my log management.
Sample:
#011/tmp/build/tools/1.17.5/go/src/runtime/asm_amd64.s:1581
#033[31mERRO#033[0m[2022-04-03 14:00:31] periodicexecutor.go:169 errors were encountered while pulling data from apps: missing Arguments from Lease Stats response {ResponseHeader:{Result:2 Text:'stat-lease6-get' command not supported. Daemon:dhcp6} Arguments:<nil>}
#033[36mINFO#033[0m[2022-04-03 14:00:31] statspuller.go:69 completed pulling lease stats from Kea apps: 0/1 succeeded
I found out that these logs are correctly formatted when using the journalctl
command, however, the ANSI color codes exist in the /var/log/syslog
and since my log management is gathering all logs through syslog
the ANSI color codes are proving problematic.
Please address this issue, any help regarding how to drop these codes, fix them, or any workaround is appreciated.
Many thanks in advance.