Logstash Logging

CAS logging framework has the ability route log messages to a TCP/UDP endpoint. This configuration assumes that the Logstash server has enabled its TCP input on port 9500:

1
2
3
4
5
6
7
8
9
10
11
12
13
...
<Appenders>
    <Socket name="socket" host="localhost" connectTimeoutMillis="3000"
            port="9500" protocol="TCP" ignoreExceptions="false">
      <SerializedLayout />
    </Socket>
</Appenders>
...
<Logger name="org.apereo" additivity="true" level="debug">
    <appender-ref ref="cas" />
    <appender-ref ref="socket" />
</Logger>
...