1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <!-- |
---|
3 | |
---|
4 | Copyright (C) 2010 Cardiff University, Wales <smartp@cf.ac.uk> |
---|
5 | |
---|
6 | Licensed under the Apache License, Version 2.0 (the "License"); you |
---|
7 | may not use this file except in compliance with the License. You may |
---|
8 | obtain a copy of the License at |
---|
9 | |
---|
10 | http://www.apache.org/licenses/LICENSE-2.0 Unless required by |
---|
11 | applicable law or agreed to in writing, software distributed under the |
---|
12 | License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR |
---|
13 | CONDITIONS OF ANY KIND, either express or implied. See the License for |
---|
14 | the specific language governing permissions and limitations under the |
---|
15 | License. |
---|
16 | --> |
---|
17 | |
---|
18 | <beans xmlns="http://www.springframework.org/schema/beans" |
---|
19 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
---|
20 | xsi:schemaLocation=" |
---|
21 | http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> |
---|
22 | |
---|
23 | <!-- List all the data access beans, used by the parser --> |
---|
24 | <bean id="dataAccessRegister" class="uk.ac.cardiff.raptor.parse.DataAccessRegister"> |
---|
25 | <property name="parsingModules"> |
---|
26 | <list> |
---|
27 | <!-- Shibboleth 2 --> |
---|
28 | |
---|
29 | <bean id="shibbolethAuditLFP" class="uk.ac.cardiff.raptor.parse.external.file.LogFileParser"> |
---|
30 | <property name="enabled" value="true"/> |
---|
31 | <property name="eventHandler"><ref bean="memoryEventHandler"></ref></property> |
---|
32 | <property name="logfile"> |
---|
33 | <value>file:///opt/shibboleth-idp/logs/idp-audit.log |
---|
34 | </value> |
---|
35 | </property> |
---|
36 | <property name="format"> |
---|
37 | <ref bean="shibIDPAuditFileFormat" /> |
---|
38 | </property> |
---|
39 | <property name="eventType"> |
---|
40 | <value>uk.ac.cardiff.model.event.ShibbolethIdpAuthenticationEvent</value> |
---|
41 | </property> |
---|
42 | <property name="printParsingPosition"><value>true</value></property> |
---|
43 | |
---|
44 | <property name="inclusionList"> |
---|
45 | <bean class="uk.ac.cardiff.raptor.parse.filter.InclusionList"> |
---|
46 | <property name="inclusionEntries"> |
---|
47 | <list> |
---|
48 | <bean class ="uk.ac.cardiff.raptor.parse.filter.match.RegexInclusionEntry"> |
---|
49 | <property name ="fieldName" value="messageProfileId"/> |
---|
50 | <property name="match" value=":sso"/> |
---|
51 | </bean> |
---|
52 | </list> |
---|
53 | </property> |
---|
54 | </bean> |
---|
55 | </property> |
---|
56 | |
---|
57 | </bean> |
---|
58 | |
---|
59 | |
---|
60 | <!-- SHIB 1.3 --> |
---|
61 | |
---|
62 | <bean id="shib13Proxy" class="uk.ac.cardiff.raptor.parse.external.file.LogFileParser"> |
---|
63 | <property name="enabled" value="false"/> |
---|
64 | <property name="eventHandler"><ref bean="memoryEventHandler"></ref></property> |
---|
65 | <property name="logfile"> |
---|
66 | <value>file:///opt/shibboleth-idp/logs/idp-audit.log |
---|
67 | </value> |
---|
68 | </property> |
---|
69 | <property name="format"> |
---|
70 | <ref bean="shib13IDPAccessFileFormat" /> |
---|
71 | </property> |
---|
72 | <property name="eventType"> |
---|
73 | <value>uk.ac.cardiff.model.event.ShibbolethIdpAuthenticationEvent</value> |
---|
74 | </property> |
---|
75 | <property name="LineFilterEngine"> |
---|
76 | <bean class="uk.ac.cardiff.raptor.parse.filter.LineFilterEngine"> |
---|
77 | <property name="includeLineFilters"> |
---|
78 | <list> |
---|
79 | <bean class="uk.ac.cardiff.raptor.parse.filter.ContainsLineFilter"> |
---|
80 | <property name="includeIfContains"><value>Authentication assertion</value></property> |
---|
81 | </bean> |
---|
82 | </list> |
---|
83 | </property> |
---|
84 | </bean> |
---|
85 | </property> |
---|
86 | </bean> |
---|
87 | |
---|
88 | <!-- EZPROXY --> |
---|
89 | |
---|
90 | <bean id="ezproxyLFP" class="uk.ac.cardiff.raptor.parse.external.file.LogFileParser"> |
---|
91 | <property name="enabled" value="false"/> |
---|
92 | <property name="eventHandler"><ref bean="memoryEventHandler"></ref></property> |
---|
93 | <property name="logfile"> |
---|
94 | <value>file:///opt/ezproxy/logs/ezproxy-DATE.log |
---|
95 | </value> |
---|
96 | </property> |
---|
97 | <property name="format"> |
---|
98 | <ref bean="ezProxyFileFormat" /> |
---|
99 | </property> |
---|
100 | <property name="eventType"> |
---|
101 | <value>uk.ac.cardiff.model.event.EzproxyAuthenticationEvent</value> |
---|
102 | </property> |
---|
103 | <property name="LineFilterEngine"> |
---|
104 | <bean id="lineFilterEngine" class="uk.ac.cardiff.raptor.parse.filter.LineFilterEngine"> |
---|
105 | <property name="includeLineFilters"> |
---|
106 | <list> |
---|
107 | <bean class="uk.ac.cardiff.raptor.parse.filter.ContainsLineFilter"> |
---|
108 | <property name="includeIfContains"><value>connect?session</value></property> |
---|
109 | </bean> |
---|
110 | </list> |
---|
111 | </property> |
---|
112 | <property name="excludeLineFilters"> |
---|
113 | <list> |
---|
114 | <bean class="uk.ac.cardiff.raptor.parse.filter.ExcludeLineFilter"> |
---|
115 | <property name="excludeIfContains"><value>url=menu</value></property> |
---|
116 | </bean> |
---|
117 | </list> |
---|
118 | </property> |
---|
119 | </bean> |
---|
120 | </property> |
---|
121 | |
---|
122 | </bean> |
---|
123 | |
---|
124 | </list> |
---|
125 | </property> |
---|
126 | </bean> |
---|
127 | |
---|
128 | <!-- Create the entry handler --> |
---|
129 | <bean name="memoryEventHandler" class="uk.ac.cardiff.raptor.store.impl.LogFileIncrementalMemoryEventHandler"></bean> |
---|
130 | |
---|
131 | |
---|
132 | <import resource="event-parse-formats-system.xml"/> |
---|
133 | <import resource="event-parse-formats-custom.xml"/> |
---|
134 | |
---|
135 | |
---|
136 | |
---|
137 | </beans> |
---|