I have set up druid on bare metal for two environments (DEV & QA) and using the default log path provided (var/sv/process/current) for splunk integration. I am able to see the logs in splunk, but unable to verfify which is DEV and which is QA as the log path are same for both and there are no keys in splunk to identify the environment.
I was thinking to add MDC key for the environment.
Wanted to know if there is a way to do it through the configs provided or I have to add MDC keys in the code and use in the log4j xml file.
OR if there is any other way to know the log’s origin, please let me know