<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks everyone. I am logging to console, which gets to Cloud Watch and Splunk through Firehose. Logging to file helps with the debugging.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Sunil<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">users <users-bounces@shibboleth.net> on behalf of Daniel Lutz via users <users@shibboleth.net><br>
<b>Date: </b>Friday, January 13, 2023 at 8:51 AM<br>
<b>To: </b>users@shibboleth.net <users@shibboleth.net><br>
<b>Cc: </b>Daniel Lutz <daniel.lutz@switch.ch><br>
<b>Subject: </b>Re: Rolling file appender in docker image<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Mathew, Sunil via users schrieb/wrote (13.01.23 09:11):<br>
> I am writing logs to log file in the docker image. The issue is that the logback.xml<br>
> in the docker image has FileAppender instead of RollingFileAppender (as is in the standard<br>
> Shibboleth install) and so the file is growing in size inside the docker container without<br>
> rolling over. Is there a reason why the docker image logback.xml is not using RollingFileAppender?<br>
<br>
You should log everything to the container's stdout instead.<br>
<br>
We use the following Logback configuration in our containers to log everything to the console (i.e. stdout).<br>
With this configuration, the IdP's logs are available via the container's logs (e.g. "docker logs <container>").<br>
(We start the containers with the "journald" log driver, such that all logs from the container<br>
are sent to the host's jornald.)<br>
<br>
<br>
/opt/shibboleth-idp/conf/logback.xml:<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<configuration><br>
     ...<br>
     <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"><br>
         <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"><br>
             <charset>UTF-8</charset><br>
             <Pattern>%date{yyyy-MM-dd HH:mm:ss.SSS} [%5level] : %logger: %msg%n</Pattern><br>
         </encoder><br>
<br>
         <!-- or to log in JSON format --><br>
         <!--<br>
         <encoder class="net.logstash.logback.encoder.LogstashEncoder"><br>
             <timeZone>UTC</timeZone><br>
         </encoder><br>
         --><br>
     </appender><br>
<br>
     <logger name="Shibboleth-Audit" level="ALL"><br>
         <appender-ref ref="${idp.audit.appender:-CONSOLE}"/><br>
     </logger><br>
<br>
     <logger name="Shibboleth-FTICKS" level="ALL" additivity="false"><br>
         <appender-ref ref="${idp.fticks.appender:-CONSOLE}"/><br>
     </logger><br>
<br>
     <logger name="Shibboleth-Consent-Audit" level="ALL"><br>
         <appender-ref ref="${idp.consent.appender:-CONSOLE}"/><br>
     </logger><br>
<br>
     <root level="${idp.loglevel.root:-INFO}"><br>
         <appender-ref ref="${idp.process.appender:-CONSOLE}"/><br>
         <appender-ref ref="${idp.warn.appender:-CONSOLE}" /><br>
     </root><br>
</configuration><br>
<br>
<br>
(You need to ensure that the "idp.*.appender" properties are not set<br>
or set to "CONSOLE".)<br>
<br>
<br>
   Daniel<br>
-- <br>
For Consortium Member technical support, see <a href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fshibboleth.atlassian.net%2Fwiki%2Fx%2FZYEpPw&data=05%7C01%7Csmathew%40hbs.edu%7Cf9c2eab40509492344dd08daf56d07be%7C09fd564ebf4243218f2db8e482f8635c%7C0%7C0%7C638092146758792881%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2BQwQOUx%2F1JCXxOIOranz3dPTwMHN2okD4HRiwYxIUtY%3D&reserved=0">
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fshibboleth.atlassian.net%2Fwiki%2Fx%2FZYEpPw&data=05%7C01%7Csmathew%40hbs.edu%7Cf9c2eab40509492344dd08daf56d07be%7C09fd564ebf4243218f2db8e482f8635c%7C0%7C0%7C638092146758792881%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2BQwQOUx%2F1JCXxOIOranz3dPTwMHN2okD4HRiwYxIUtY%3D&reserved=0</a><br>
To unsubscribe from this list send an email to users-unsubscribe@shibboleth.net<o:p></o:p></span></p>
</div>
</div>
</body>
</html>