You can try the following, which will write the "active" log to a single fixed log file name:
- Backup/save the file /opt/sas94/SASConfig/Lev1/SASMeta/MetadataServer/logconfig.xml as logconfig.xml.bak
- Edit the file /opt/sas94/SASConfig/Lev1/SASMeta/MetadataServer/logconfig.xml (You will need to insert one line)
<!-- Rolling log file with default rollover of midnight. --> <appender class="RollingFileAppender" name="TimeBasedRollingFile"> <param name="File" value="/opt/sas94/SASConfig/Lev1/SASMeta/MetadataServer/Logs/SAS_MetadataServer.log"/> <param name="Append" value="false"/>
- Afterwards, stop/restart your services.
Now, you can use the log file: /opt/sas94/SASConfig/Lev1/SASMeta/MetadataServer/Logs/SAS_MetadataServer.log in your syslog-ng.conf
source sas_log { file("/opt/sas94/SASConfig/Lev1/SASMeta/MetadataServer/Logs/SAS_MetadataServer.log"); };
Note
1. I do not know much about syslog-ng, so check the syntax carefully
2. I did not test the above...but I believe the above would work. You will need to test the above in a "test environment" before you change production configuration.
... View more