This file is indexed.

/usr/share/logsparser/normalizers/xferlog.xml is in python-logsparser 0.4-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<?xml version="1.0" encoding="UTF-8"?>
<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
<!--                                                            -->
<!-- pylogparser - Logs parsers python library                  -->
<!-- Copyright (C) 2011 Wallix Inc.                             -->
<!--                                                            -->
<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
<!--                                                            -->
<!-- This package is free software; you can redistribute        -->
<!-- it and/or modify it under the terms of the GNU Lesser      -->
<!-- General Public License as published by the Free Software   -->
<!-- Foundation; either version 2.1 of the License, or (at      -->
<!-- your option) any later version.                            -->
<!--                                                            -->
<!-- This package is distributed in the hope that it will be    -->
<!-- useful, but WITHOUT ANY WARRANTY; without even the implied -->
<!-- warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR    -->
<!-- PURPOSE.  See the GNU Lesser General Public License for    -->
<!-- more details.                                              -->
<!--                                                            -->
<!-- You should have received a copy of the GNU Lesser General  -->
<!-- Public License along with this package; if not, write      -->
<!-- to the Free Software Foundation, Inc., 59 Temple Place,    -->
<!-- Suite 330, Boston, MA  02111-1307  USA                     -->
<!--                                                            -->
<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
<!DOCTYPE normalizer SYSTEM "normalizer.dtd">
<normalizer name="xferlog"
            version="0.99"
            unicode="yes"
            ignorecase="yes"
            matchtype="match"
            appliedTo="raw"
            taxonomy="file transfer">
    <description>
        <localized_desc language="en">This normalizer handles FTP logs in the xferlog format.
This format is supported by a wide range of FTP servers like Wu-Ftpd, VSFTPd, ProFTPD or standard BSD ftpd.
The "program" tag is therefore set to the generic value "ftpd".</localized_desc>
        <localized_desc language="fr">Ce normaliseur traite les logs au format xferlog.
Le format xferlog est utilisé pour consigner les événements par de nombreux serveurs FTP, tels que 
Wu-Ftpd, ProFTPD ou la version BSD de ftpd.
La métadonnée "program" reçoit de fait la valeur générique "ftpd".</localized_desc>
    </description>
    <authors>
        <author>clo@wallix.com</author>
    </authors>
    <tagTypes>
        <tagType name="date" type="datetime">
            <description>
                <localized_desc language="en">Expression matching a date in the DDD MMM dd hh:mm:ss YYYY format.</localized_desc>
                <localized_desc language="fr"></localized_desc>
            </description>
            <regexp>[A-Z]{1}[a-z]{2} [A-Z]{1}[a-z]{2} \d{1,2} \d{2}:\d{2}:\d{2} \d{4}</regexp>
        </tagType>
        <tagType name="vsftpd_field" type="basestring">
            <description>
                <localized_desc language="en">Expression matching a vsftpd field (any non-whitespace character).</localized_desc>
                <localized_desc language="fr"></localized_desc>
            </description>
            <regexp>\S+</regexp>
        </tagType>
        <tagType name="transfer_type" type="basestring">
            <description>
                <localized_desc language="en">Expression matching a vsftpd field more accurately than the 'vsftpd field' tagType. Possible values are a or b, see the description of the tag [with the same name] for details.</localized_desc>
                <localized_desc language="fr"></localized_desc>
            </description>
            <regexp>a|b</regexp>
        </tagType>
        <tagType name="special_action_flag" type="basestring">
            <description>
                <localized_desc language="en">Expression matching a vsftpd field more accurately than the 'vsftpd field' tagType. Possible values are _, C, U or T, see the description of the tag [with the same name] for details.</localized_desc>
                <localized_desc language="fr"></localized_desc>
            </description>
            <regexp>_|C|T|U</regexp>
        </tagType>
        <tagType name="direction" type="basestring">
            <description>
                <localized_desc language="en">Expression matching a vsftpd field more accurately than the 'vsftpd field' tagType. Possible values are o or i, see the description of the tag [with the same name] for details.</localized_desc>
                <localized_desc language="fr"></localized_desc>
            </description>
            <regexp>o|i</regexp>
        </tagType>
        <tagType name="access_mode" type="basestring">
            <description>
                <localized_desc language="en">Expression matching a vsftpd field more accurately than the 'vsftpd field' tagType. Possible values are a, g or r, see the description of the tag [with the same name] for details.</localized_desc>
                <localized_desc language="fr"></localized_desc>
            </description>
            <regexp>a|g|r</regexp>
        </tagType>
        <tagType name="authentication_method" type="basestring">
            <description>
                <localized_desc language="en">Expression matching a vsftpd field more accurately than the 'vsftpd field' tagType. Possible values are 0 or 1, see the description of the tag [with the same name] for details.</localized_desc>
                <localized_desc language="fr"></localized_desc>
            </description>
            <regexp>0|1</regexp>
        </tagType>
        <tagType name="completion_status" type="basestring">
            <description>
                <localized_desc language="en">Expression matching a vsftpd field more accurately than the 'vsftpd field' tagType. Possible values are c or i, see the description of the tag [with the same name] for details.</localized_desc>
                <localized_desc language="fr"></localized_desc>
            </description>
            <regexp>c|i</regexp>
        </tagType>
    </tagTypes>
    <callbacks>
        <callback name="decode_transfer_type">
decoder = {'a' : 'ascii', 'b' : 'binary'}
log['transfer_type'] = decoder.get(value, 'UNKNOWN')
        </callback>
        <callback name="decode_special_action_flag">
decoder = {'C' : 'compressed', 'U' : 'uncompressed', 'T' : "tar'ed", "_" : "none"}
log['special_action'] = decoder.get(value, 'UNKNOWN')
        </callback>
        <callback name="decode_direction">
decoder = {'o' : 'outgoing', 'i' : 'ingoing'}
log['direction'] = decoder.get(value, 'UNKNOWN')
        </callback>
        <callback name="decode_access_mode">
decoder = {'a' : 'anonymous', 'g' : 'guest', 'r' : 'real'}
log['access_mode'] = decoder.get(value, 'UNKNOWN')
        </callback>
        <callback name="decode_authentication_method">
decoder = {'0' : 'none', '1' : 'RFC931'}
log['authentication_method'] = decoder.get(value, 'UNKNOWN')
        </callback>
        <callback name="decode_completion_status">
decoder = {'c' : 'complete', 'i' : 'incomplete'}
log['completion_status'] = decoder.get(value, 'UNKNOWN')
        </callback>
    </callbacks>
    <patterns>
        <pattern name="vsftpd-001">
            <description>
                <localized_desc language="en"></localized_desc>
                <localized_desc language="fr"></localized_desc>
            </description>
            <text>DATE\s+TSF_TIME\s+RMT_HOST\s+BYT_COUNT\s+FILENAME\s+TSF_TYPE\s+SPE_ACT_FLAG\s+DIR\s+ACC_MODE\s+USERNAME\s+SVC_NAME\s+AUTH_METHOD\s+AUTHENTICATED_USER_ID\s+COMPLETION_STATUS</text>
            <tags>
                <tag name="__date" tagType="date">
                    <description>
                        <localized_desc language="en">The current local time in the form "DDD MMM dd hh:mm:ss YYYY", where DDD is the day of the week, MMM is the month, dd is the day of the month, hh is the hour, mm is the min-utes, ss is the seconds, and YYYY is the year.</localized_desc>
                        <localized_desc language="fr"></localized_desc>
                    </description>
                    <substitute>DATE</substitute>
                    <callbacks>
                        <callback>DDD MMM dd hh:mm:ss YYYY</callback>
                    </callbacks>
                </tag>
                <tag name="transfer_time" tagType="Integer">
                    <description>
                        <localized_desc language="en">The total time of the transfer in seconds.</localized_desc>
                        <localized_desc language="fr"></localized_desc>
                    </description>
                    <substitute>TSF_TIME</substitute>
                </tag>
                <tag name="source_ip" tagType="IP">
                    <description>
                        <localized_desc language="en">The remote host name.</localized_desc>
                        <localized_desc language="fr"></localized_desc>
                    </description>
                    <substitute>RMT_HOST</substitute>
                </tag>
                <tag name="len" tagType="Integer">
                    <description>
                        <localized_desc language="en">The amount of transferred bytes.</localized_desc>
                        <localized_desc language="fr"></localized_desc>
                    </description>
                    <substitute>BYT_COUNT</substitute>
                </tag>
                <tag name="filename" tagType="vsftpd_field">
                    <description>
                        <localized_desc language="en">The canonicalized (all symbolic links are resolved) abso-lute pathname of the transferred file. In case of the chrooted FTP session this field can be interpreted as the pathname in the chrooted environment(the default interpretation) or as the one in the realfile system. The second type of interpretation can be enabled by the command-line options of the ftpd.</localized_desc>
                        <localized_desc language="fr"></localized_desc>
                    </description>
                    <substitute>FILENAME</substitute>
                </tag>
                <tag name="transfer_type_code" tagType="transfer_type">
                    <description>
                        <localized_desc language="en">he single character that indicates the type of the trans-fer. The set of possible values is: 'a' (an ascii transfer) or 'b' (a binary transfer).</localized_desc>
                        <localized_desc language="fr"></localized_desc>
                    </description>
                    <substitute>TSF_TYPE</substitute>
                    <callbacks>
                        <callback>decode_transfer_type</callback>
                    </callbacks>
                </tag>
                <tag name="special_action_flag" tagType="special_action_flag">
                    <description>
                        <localized_desc language="en">One or more single character flags indicating any special action taken. The set of possible values is: '_'(no action was taken), 'C'(the file was compressed [not in use]), 'U'(the file was uncompressed [not in use]) or 'T'(the file was tar'ed [not in use]).</localized_desc>
                        <localized_desc language="fr"></localized_desc>
                    </description>
                    <substitute>SPE_ACT_FLAG</substitute>
                    <callbacks>
                        <callback>decode_special_action_flag</callback>
                    </callbacks>
                </tag>
                <tag name="direction_code" tagType="direction">
                    <description>
                        <localized_desc language="en">The direction of the transfer. The set of possible values is: 'o'(the outgoing transfer) or 'i'(the incoming transfer)</localized_desc>
                        <localized_desc language="fr"></localized_desc>
                    </description>
                    <substitute>DIR</substitute>
                    <callbacks>
                        <callback>decode_direction</callback>
                    </callbacks>
                </tag>
                <tag name="access_mode_code" tagType="access_mode">
                    <description>
                        <localized_desc language="en">The method by which the user is logged in. The set of possible values is: 'a'[anonymous](the anonymous guest user), 'g'[guest](the real but chrooted user [this capability is guided by ftpchroot(5) file]) or 'r'[real](the real user).</localized_desc>
                        <localized_desc language="fr"></localized_desc>
                    </description>
                    <substitute>ACC_MODE</substitute>
                    <callbacks>
                        <callback>decode_access_mode</callback>
                    </callbacks>
                </tag>
                <tag name="user" tagType="vsftpd_field">
                    <description>
                        <localized_desc language="en">The user's login name in case of the real user, or the user's identification string in case of the anonymous user (by convention it is an email address of the user).</localized_desc>
                        <localized_desc language="fr"></localized_desc>
                    </description>
                    <substitute>USERNAME</substitute>
                </tag>
                <tag name="service_name" tagType="vsftpd_field">
                    <description>
                        <localized_desc language="en">The name of the service being invoked. The ftpd (utility uses the 'ftp' keyword).</localized_desc>
                        <localized_desc language="fr"></localized_desc>
                    </description>
                    <substitute>SVC_NAME</substitute>
                </tag>
                <tag name="authentication_method_code" tagType="authentication_method">
                    <description>
                        <localized_desc language="en">The used method of the authentication. The set of possible values is: '0' None or '1' RFC931 Authentication (not in use).</localized_desc>
                        <localized_desc language="fr"></localized_desc>
                    </description>
                    <substitute>AUTH_METHOD</substitute>
                    <callbacks>
                        <callback>decode_authentication_method</callback>
                    </callbacks>
                </tag>
                <tag name="authenticated_user_id" tagType="vsftpd_field">
                    <description>
                        <localized_desc language="en">The user id returned by the authentication method. The '*' symbol is used if an authenticated user id is not available.</localized_desc>
                        <localized_desc language="fr"></localized_desc>
                    </description>
                    <substitute>AUTHENTICATED_USER_ID</substitute>
                </tag>
                <tag name="completion_status_code" tagType="completion_status">
                    <description>
                        <localized_desc language="en">The single character that indicates the status of the transfer. The set of possible values is: 'c' a complete transfer or 'i' an incomplete transfer.</localized_desc>
                        <localized_desc language="fr"></localized_desc>
                    </description>
                    <substitute>COMPLETION_STATUS</substitute>
                    <callbacks>
                        <callback>decode_completion_status</callback>
                    </callbacks>
                </tag>
            </tags>
            <examples>
                <example>
                     <text>Thu Mar 4 08:12:30 2004 1 202.114.40.242 37 /incoming/index.html a _ o a guest@my.net ftp 0 * c</text>
                     <expectedTags>
                          <expectedTag name="transfer_time">1</expectedTag>
                          <expectedTag name="source_ip">202.114.40.242</expectedTag>
                          <expectedTag name="len">37</expectedTag>
                          <expectedTag name="filename">/incoming/index.html</expectedTag>
                          <expectedTag name="transfer_type_code">a</expectedTag>
                          <expectedTag name="transfer_type">ascii</expectedTag>
                          <expectedTag name="special_action_flag">_</expectedTag>
                          <expectedTag name="special_action">none</expectedTag>
                          <expectedTag name="direction_code">o</expectedTag>
                          <expectedTag name="direction">outgoing</expectedTag>
                          <expectedTag name="access_mode_code">a</expectedTag>
                          <expectedTag name="access_mode">anonymous</expectedTag>
                          <expectedTag name="user">guest@my.net</expectedTag>
                          <expectedTag name="service_name">ftp</expectedTag>
                          <expectedTag name="authentication_method_code">0</expectedTag>
                          <expectedTag name="authentication_method">none</expectedTag>
                          <expectedTag name="authenticated_user_id">*</expectedTag>
                          <expectedTag name="completion_status">complete</expectedTag>
                          <expectedTag name="completion_status_code">c</expectedTag>
                          <expectedTag name="program">ftpd</expectedTag>
                          <expectedTag name="taxonomy">file transfer</expectedTag>
                     </expectedTags>
                </example>
            </examples>
        </pattern>
    </patterns>
    <commonTags>
        <commonTag name="program">ftpd</commonTag>
    </commonTags>
</normalizer>