Morning All,

                First, thanks to Dave from the New School for producing the 
deployment guide it was a great help for us migrating

from CAS 3 -> CAS 5 which we’ve recently done.

 

I’ve a couple of issues with logging I wouldn’t mind throwing out here.

 

1/.

 

I set a TimeBasedTriggeringPolicy of a day (via interval of 1 and pattern of 
yyy-MM-dd ) and removed the size=10 MB” from the SizeBasedTriggeringPolicy in 
our

Log4j2.xml file but noticed our logs were rolling still at 10/11MB when we left 
in the <SizeBasedTriggeringPolicy  /> line.  

 

Without it the just roll daily as expected.  I’m not sure if this is something 
unique to us and haven’t found any log4j2 docs that imply there’s a default

if it’s left in without a value.  Can anyone else clarify if the 
SizeBasedTriggeringPolicy should be removed or this is a local issue.

 

2/.

 

I created another Appender and AsyncLogger to send logs to our ELS stack via 
logstash.  Our TGT’s are not being ****’d our in those logs.  Given the

below configs, the TGT’s are obfuscated in cas_json.log but not in logstash.  
Is this as expected / do I need to do the obfuscation in logstash?

 

Cheers,

        Duncan

 

 

<RollingFile name="dbbfile" fileName="${sys:cas.log.dir}/cas_json.log" 
append="true"

                     
filePattern="${sys:cas.log.dir}/cas_json-%d{yyyy-MM-dd}-%i.log">

            <PatternLayout pattern="%d %p [%c] - &lt;%m&gt;%n"/>

            <Policies>

                <OnStartupTriggeringPolicy />

                <TimeBasedTriggeringPolicy interval="1" modulate="true"/>

            </Policies>

        </RollingFile>

 

 

<CasAppender name="casJson">

            <AppenderRef ref="dbbfile" />

        </CasAppender>

 

<Socket name="socket" host="logstashhost" connectTimeoutMillis="3000"

                port="9500" protocol="TCP" ignoreExceptions="false" >

                <JsonLayout compact="true" complete="false" eventEol="true" />

                <SerializedLayout />

        </Socket>

 

 

<AsyncLogger name="org.apereo" additivity="true" level="info">

           <appender-ref ref="casJson" />

           <appender-ref ref="socket" />

        </AsyncLogger>

 

 

 

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/7102A04D-14F7-48C0-B54A-AAEB755B0DFF%40st-andrews.ac.uk.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to