Thanks for the tip. I should have been more clear. We are on 6.1.7 so I
think this is what we want:

https://apereo.github.io/cas/6.1.x/configuration/Configuration-Properties.html#slf4j-audits

On Wed, Aug 26, 2020 at 10:16 AM Jason Everling <[email protected]>
wrote:

> We are using JSON format so that its more Filebeat friendly, did you also
> configure in your cas.properties? We didn’t have to change anything in the
> log4j xml besides enabling the audit file, the properties are below which
> comes from
> https://apereo.github.io/cas/6.2.x/configuration/Configuration-Properties.html#slf4j-audits
>
>
>
> cas.audit.slf4j.auditFormat=JSON
>
> cas.audit.slf4j.singlelineSeparator=|
>
> cas.audit.slf4j.useSingleLine=true
>
> cas.audit.slf4j.enabled=true
>
>
>
> *From: *Bryan Wooten <[email protected]>
> *Sent: *Wednesday, August 26, 2020 10:50 AM
> *To: *[email protected]
> *Subject: *[cas-user] JSON log file format
>
>
>
> I know this is more of a log4j question, but my google foo is not working.
>
>
>
> My log4j2.xml has this:
>
>
>
> <RollingFile name="auditlogfile" fileName="/etc/cas/logs/cas_audit.log"
> append="true"
>
>  filePattern="/etc/cas/logs/cas_audit-%d{yyyy-MM-dd-HH}-%i.log">
>             <PatternLayout pattern="%d %p [%c] - %m%n"/>
>             <Policies>
>                 <OnStartupTriggeringPolicy />
>                 <SizeBasedTriggeringPolicy size="20 MB"/>
>                 <TimeBasedTriggeringPolicy />
>             </Policies>
>         </RollingFile>
>
>
>
> Does anyone have an example showing a JSON PatternLayout?
>
>
>
> -Bryan
>
>
>
> University of Utah
>
> --
> - 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/CAG9x2GVhAMkkTZNho63hxcmOv97bRjJ-rUAM7OmUi94E_kEm-w%40mail.gmail.com
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAG9x2GVhAMkkTZNho63hxcmOv97bRjJ-rUAM7OmUi94E_kEm-w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
>
>
> --
> - 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/2E53CF11-E387-4241-BB35-1D29D77C4014%40hxcore.ol
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/2E53CF11-E387-4241-BB35-1D29D77C4014%40hxcore.ol?utm_medium=email&utm_source=footer>
> .
>

-- 
- 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/CAG9x2GX5sYxcX%2BGnJR7s4W6cqNCbQz26A4nXgqAVEbGzEPE8_g%40mail.gmail.com.

Reply via email to