<html xmlns:v="urn:schemas-microsoft-com:vml" 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=utf-8">
<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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Helvetica Neue";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.code-object
        {mso-style-name:code-object;}
.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><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">We use a runtime pipe in the InCommon TAP container for the Shibb SP [1].<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Specifically, in these 3 files:<o:p></o:p></p>
<p class="MsoNormal"><a href="https://github.internet2.edu/docker/shib-sp/blob/master/container_files/system/startup.sh">https://github.internet2.edu/docker/shib-sp/blob/master/container_files/system/startup.sh</a><o:p></o:p></p>
<p class="MsoNormal"><a href="https://github.internet2.edu/docker/shib-sp/blob/master/container_files/shibboleth/shibd.logger">https://github.internet2.edu/docker/shib-sp/blob/master/container_files/shibboleth/shibd.logger</a><o:p></o:p></p>
<p class="MsoNormal"><a href="https://github.internet2.edu/docker/shib-sp/blob/master/container_files/shibboleth/native.logger">https://github.internet2.edu/docker/shib-sp/blob/master/container_files/shibboleth/native.logger</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[1] <a href="https://github.internet2.edu/docker/shib-sp">https://github.internet2.edu/docker/shib-sp</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> users <users-bounces@shibboleth.net> <b>On Behalf Of
</b>Francesco Carosella<br>
<b>Sent:</b> Monday, July 13, 2020 10:57 AM<br>
<b>To:</b> users@shibboleth.net<br>
<b>Subject:</b> how to configure Shibboleth SP to send logs on stdout and stderr console<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p style="margin:0in;margin-bottom:.0001pt;background:white"><span style="font-size:10.5pt;font-family:"Helvetica Neue",serif;color:#172B4D">Hi all,<o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;color:rgb(23, 43,
      77);font-variant-ligatures:
      normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style:
      initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-size:10.5pt;font-family:"Helvetica Neue",serif;color:black">I'm using Shibboleth SP v. 3.1.0 on RHEL 7 in a Docker container. </span><span style="font-size:10.5pt;font-family:"Helvetica Neue",serif"><o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;color:rgb(23, 43,
      77);font-variant-ligatures:
      normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style:
      initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-size:10.5pt;font-family:"Helvetica Neue",serif;color:black">I need to send the SP logs in stdout and stderr console, in order to read them with the "docker logs" command.</span><span style="font-size:10.5pt;font-family:"Helvetica Neue",serif"><o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;color:rgb(23, 43,
      77);font-variant-ligatures:
      normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style:
      initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-size:10.5pt;font-family:"Helvetica Neue",serif;color:black">I have tried to configure the shibd.logger configuration file by adding the follow appender:</span><span style="font-size:10.5pt;font-family:"Helvetica Neue",serif"><o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;color:rgb(23, 43,
      77);font-variant-ligatures:
      normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style:
      initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-size:10.5pt;font-family:"Helvetica Neue",serif;color:black"> </span><span style="font-size:10.5pt;font-family:"Helvetica Neue",serif"><o:p></o:p></span></p>
<div style="border:solid #C1C7D0 1.0pt;padding:0in 0in 0in 0in;margin-top:6.75pt;margin-bottom:6.75pt;background:rgb(244, 245,
      247);border-radius: 3px;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width:
      0px;text-decoration-style: initial;text-decoration-color:
      initial;word-spacing:0px">
<div>
<pre><span style="color:#172B4D">log4j.appender.stdout=org.apache.log4j.ConsoleAppender<o:p></o:p></span></pre>
<pre><span style="color:#172B4D">log4j.appender.stdout.Target=</span><span class="code-object"><span style="color:#000091">System</span></span><span style="color:#172B4D">.out<o:p></o:p></span></pre>
<pre><span style="color:#172B4D">log4j.appender.stdout.layout=org.apache.log4j.PatternLayout<o:p></o:p></span></pre>
<pre><span style="color:#172B4D">log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n<o:p></o:p></span></pre>
</div>
</div>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;color:rgb(23, 43,
      77);font-variant-ligatures:
      normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style:
      initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-size:10.5pt;font-family:"Helvetica Neue",serif;color:black">and the follow root category:</span><span style="font-size:10.5pt;font-family:"Helvetica Neue",serif"><o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;color:rgb(23, 43,
      77);font-variant-ligatures:
      normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style:
      initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-size:10.5pt;font-family:"Helvetica Neue",serif"><o:p> </o:p></span></p>
<div style="border:solid #C1C7D0 1.0pt;padding:0in 0in 0in 0in;margin-top:6.75pt;margin-bottom:6.75pt;background:rgb(244, 245,
      247);border-radius: 3px;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width:
      0px;text-decoration-style: initial;text-decoration-color:
      initial;word-spacing:0px">
<div>
<pre><span style="color:#172B4D">log4j.rootCategory=INFO, shibd_log, warn_log, stdout<o:p></o:p></span></pre>
</div>
</div>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;color:rgb(23, 43,
      77);font-variant-ligatures:
      normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style:
      initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-size:10.5pt;font-family:"Helvetica Neue",serif;color:black">but it doesn't work. I get the log files in /var/log/shibboleth/ path but not in stdout console</span><span style="font-size:10.5pt;font-family:"Helvetica Neue",serif"><o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;color:rgb(23, 43,
      77);font-variant-ligatures:
      normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style:
      initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-size:10.5pt;font-family:"Helvetica Neue",serif;color:black"> I run the SP daemon inside the docker container with the follow command: </span><span style="font-size:10.5pt;font-family:"Helvetica Neue",serif"><o:p></o:p></span></p>
<div style="border:solid #C1C7D0 1.0pt;padding:0in 0in 0in 0in;margin-top:6.75pt;margin-bottom:6.75pt;background:rgb(244, 245,
      247);border-radius: 3px;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width:
      0px;text-decoration-style: initial;text-decoration-color:
      initial;word-spacing:0px">
<div>
<pre><span style="color:#172B4D">exec  /usr/sbin/shibd -u $SHIBD_USER -c $CONFING_SHARED/shibboleth2.xml -p $pidfile -f -F<o:p></o:p></span></pre>
</div>
</div>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;color:rgb(23, 43,
      77);font-variant-ligatures:
      normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style:
      initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-size:10.5pt;font-family:"Helvetica Neue",serif;color:black">Thanks in advance</span><span style="font-size:10.5pt;font-family:"Helvetica Neue",serif"><o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;color:rgb(23, 43,
      77);font-variant-ligatures:
      normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style:
      initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-size:10.5pt;font-family:"Helvetica Neue",serif;color:black">Francesco
</span><span style="font-size:10.5pt;font-family:"Helvetica Neue",serif"><o:p></o:p></span></p>
</div>
</body>
</html>