Trenton,

What version of CAS are you on? When we were on 5.2, we had a line in our 
cas.properties which made the logging all on one line:  
cas.audit.useSingleLine=true
However, since having gone to CAS 5.3, that property seems to have gone 
away. I've yet to dig into log4j2.xml to get the same result: one line log 
entries. It does make audits much easier. If you're still on 5.2 that 
property should take care of you.


On Monday, August 26, 2019 at 3:35:30 PM UTC-6, Trenton D. Adams wrote:
>
> Hi Guys, 
>
> When it comes to system administration and diagnostics, it is quite 
> common to use standard Linux utilities for debugging. Things like grep, 
> awk, sed, cut, etc.  The CAS logs make this quite difficult.  Could we 
> maybe start composing the logs into single line "records" of a sort? 
>
> for example, the following is not easily processed using the cli... 
>
> ============================================================= 
> WHO: someone 
> WHAT: ST-54765-7eEtYFJT1VBZ2Ssexczzf7FE5ow-tst-cas-01 
> ACTION: SERVICE_TICKET_VALIDATED 
> APPLICATION: CAS 
> WHEN: Mon Aug 26 15:27:53 MDT 2019 
> CLIENT IP ADDRESS: 123.123.123.123 
> SERVER IP ADDRESS: server.example.com 
> ============================================================= 
>
> I've been working around it in a somewhat clunky way by doing the 
> following, but this really is just a hack. 
>
> tail -f /var/log/cas/cas.log | egrep 'CLIENT IP ADDRESS|ACTION|WHAT' 
>
> Also, for service ticket validations it would be nice if they included 
> the service url. 
>
> Thanks. 
>
> -- 
> Trenton D. Adams 
> Senior Systems Analyst/Web Software Developer 
> Applications Unit - ITS 
> Athabasca University 
> (780) 675-6195 
>
> It is only when you are surrounded by a supportive team, that you can 
> achieve 
> your best.  Instead of tearing people down, try building them up! 
>
> -- 
> This communication is intended for the use of the recipient to whom it is 
> addressed, and may contain confidential, personal, and or privileged 
> information. Please contact us immediately if you are not the intended 
> recipient of this communication, and do not copy, distribute, or take 
> action relying on it. Any communications received in error, or subsequent 
> reply, should be deleted or destroyed. 
> --- 
>

-- 
- 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/6d250ff7-c261-4e16-8055-a64dc13f4495%40apereo.org.

Reply via email to