This file is indexed.

/usr/share/logsparser/normalizers/MSExchange2007MessageTracking.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
<?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="MSExchange2007MessageTracking"
            version="0.99"
            unicode="yes"
            ignorecase="yes"
            matchtype="match"
            appliedTo="raw"
            taxonomy="mail">
    <description>
        <localized_desc language="en">This parser defines how to normalize specific MS Exchange flat files based on observed behavior of MS Exchange 2007 (trial version); while it would have to be confirmed that it is consistent with other versions, it is likely that it won't cause any trouble.

This parser describes the format of Exchange 2007's Message Tracking Log (something similar to Postfix logs), a CSV-like flat file that can be found at 
C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\MessageTracking on a standard install.</localized_desc>
        <localized_desc language="fr">Ce normaliseur analyse certains fichiers de logs générés par MS Exchange 2007. Bien que ce normaliseur ait été écrit par rétro-analyse du comportement d'une version d'évaluation, il devrait être adapté aux versions complètes d'Exchange.
        
Ce normaliseur décrit le format du "Message Tracking Log" (un journal d'événements similaire à celui d'un serveur Postfix), un fichier plat de type CSV qui se trouve à l'emplacement suivant dans une installation standard : C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\MessageTracking .</localized_desc>
    </description>
    <authors>
        <author>mhu@wallix.com</author>
    </authors>
    <tagTypes>
        <tagType name="MTLDate" type="datetime">
            <description>
                <localized_desc language="en">The log's specific dateformat</localized_desc>
                <localized_desc language="fr">Le format d'horodatage spécifique à ce type de log</localized_desc>
            </description>
            <regexp>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[.]\d{3}Z</regexp>
        </tagType>
        <tagType name="MTLMessageID" type="basestring">
            <description>
                <localized_desc language="en">the message ID</localized_desc>
                <localized_desc language="fr">l'identifiant de message</localized_desc>
            </description>
            <regexp>&lt;.+@.+&gt;</regexp>
        </tagType>
        <tagType name="MTLSourceContext" type="basestring">
            <description>
                <localized_desc language="en">the source context</localized_desc>
                <localized_desc language="fr">le contexte de la source</localized_desc>
            </description>
            <regexp>"?(?:[^,]+, )*[^,]+"?</regexp>
        </tagType>
    </tagTypes>
    <callbacks>
        <callback name="decode_MTLMessageID">
log['message_id'] = value[1:-1]</callback>
        <callback name="decode_MTLSourceContext">
if value.startswith('"'):
    value = value[1:-1]
d = dict( [ u.split(':', 1) for u in value.split(', ') ] )
# convert camelCase fields into underscore names
r = re.compile('[A-Z][a-z0-9]+')
rdate = re.compile("""
(?P&lt;year&gt;\d{4})-
(?P&lt;month&gt;\d{2})-
(?P&lt;day&gt;\d{2})
T(?P&lt;hour&gt;\d{2}):
(?P&lt;minute&gt;\d{2}):
(?P&lt;second&gt;\d{2})\.
(?P&lt;microsecond&gt;\d{1,3})?Z""", re.VERBOSE)
for name, v in d.items():
    new_name = name
    words = r.findall(name)
    if words:
        new_name = '_'.join(words)
    new_value = v
    if rdate.match(v):
        m = rdate.match(v).groupdict()
        m.setdefault('microsecond', 0)
        m = dict( [ (u, int(v)) for u,v in m.items() ] )
        m['microsecond'] = m['microsecond'] * 1000
        new_value = datetime( **m ).ctime()
    del d[name]
    d[new_name.lower()] = new_value
log.update(d)
</callback>
    </callbacks>
    <patterns>
        <pattern name="MSExchange2007MTL-001">
            <description>
                <localized_desc language="en">The Message Tracking Log Format as described in the first line of the log file</localized_desc>
                <localized_desc language="fr">Le format du Message Tracking Log, tel qu'il apparaît en première ligne du journal d'événements</localized_desc>
            </description>
            <text type="csv" separator="," quotechar='"' >DATE,CLIENT_IP,CLIENT_HOSTNAME,SERVER_IP,SERVER_HOSTNAME,CONTEXT_EXCHANGE_SOURCE,CONNECTOR_ID,EXCHANGE_SOURCE,EVENT_ID,INTERNAL_MESSAGE_ID,MESSAGE_ID,RECIPIENT_ADDRESS,RECIPIENT_STATUS,TOTAL_BYTES,RECIPIENT_COUNT,RELATED_RECIPIENT_ADDRESS,REFERENCE,MESSAGE_SUBJECT,SENDER_ADDRESS,RETURN_PATH,MESSAGE_INFO</text>
            <tags>
                <tag name="__date" tagType="MTLDate">
                    <description>
                        <localized_desc language="en">the log's timestamp</localized_desc>
                        <localized_desc language="fr">l'horodatage de l'événement</localized_desc>
                    </description>
                    <substitute>DATE</substitute>
                    <callbacks>
                        <callback>ISO8601</callback>
                    </callbacks>
                </tag>
                <tag name="source_ip" tagType="Anything">
                    <description>
                        <localized_desc language="en">the client's IP address</localized_desc>
                        <localized_desc language="fr">l'adresse IP du client</localized_desc>
                    </description>
                    <substitute>CLIENT_IP</substitute>
                </tag>
                <tag name="source_host" tagType="Anything">
                    <description>
                        <localized_desc language="en">the client's hostname</localized_desc>
                        <localized_desc language="fr">le nom d'hôte du client</localized_desc>
                    </description>
                    <substitute>CLIENT_HOSTNAME</substitute>
                </tag>
                <tag name="dest_ip" tagType="Anything">
                    <description>
                        <localized_desc language="en">the server's IP address</localized_desc>
                        <localized_desc language="fr">l'adresse IP du serveur</localized_desc>
                    </description>
                    <substitute>SERVER_IP</substitute>
                </tag>
                <tag name="dest_host" tagType="Anything">
                    <description>
                        <localized_desc language="en">the server's hostname</localized_desc>
                        <localized_desc language="fr">le nom d'hôte du serveur</localized_desc>
                    </description>
                    <substitute>SERVER_HOSTNAME</substitute>
                </tag>
                <tag name="__exchange_source_context" tagType="MTLSourceContext">
                    <description>
                        <localized_desc language="en">the source context</localized_desc>
                        <localized_desc language="fr">le contexte de la source</localized_desc>
                    </description>
                    <substitute>CONTEXT_EXCHANGE_SOURCE</substitute>
                    <callbacks>
                        <callback>decode_MTLSourceContext</callback>
                    </callbacks>
                </tag>
                <tag name="connector_id" tagType="Anything">
                    <description>
                        <localized_desc language="en">the connector ID</localized_desc>
                        <localized_desc language="fr">l'identifiant du connecteur</localized_desc>
                    </description>
                    <substitute>CONNECTOR_ID</substitute>
                </tag>
                <tag name="exchange_source" tagType="Anything">
                    <substitute>EXCHANGE_SOURCE</substitute>
                </tag>
                <tag name="event_id" tagType="Anything">
                    <description>
                        <localized_desc language="en">the event ID</localized_desc>
                        <localized_desc language="fr">l'identifiant d'événement</localized_desc>
                    </description>
                    <substitute>EVENT_ID</substitute>
                </tag>
                <tag name="internal_message_id" tagType="Anything">
                    <description>
                        <localized_desc language="en">the internal message ID</localized_desc>
                        <localized_desc language="fr">l'identifiant interne du message</localized_desc>
                    </description>
                    <substitute>INTERNAL_MESSAGE_ID</substitute>
                </tag>
                <tag name="__message_id" tagType="MTLMessageID">
                    <description>
                        <localized_desc language="en">the message ID</localized_desc>
                        <localized_desc language="fr">l'identifiant du message</localized_desc>
                    </description>
                    <substitute>MESSAGE_ID</substitute>
                    <callbacks>
                        <callback>decode_MTLMessageID</callback>
                    </callbacks>
                </tag>
                <tag name="message_recipient" tagType="Anything">
                    <description>
                        <localized_desc language="en">the recipient's address</localized_desc>
                        <localized_desc language="fr">l'adresse du destinataire</localized_desc>
                    </description>
                    <substitute>RECIPIENT_ADDRESS</substitute>
                </tag>
                <tag name="recipient_status" tagType="Anything">
                    <description>
                        <localized_desc language="en">the recipient's status</localized_desc>
                        <localized_desc language="fr">le statut du destinataire</localized_desc>
                    </description>
                    <substitute>RECIPIENT_STATUS</substitute>
                </tag>
                <tag name="len" tagType="Anything">
                    <description>
                        <localized_desc language="en">total bytes in the transaction</localized_desc>
                        <localized_desc language="fr">le nombre de bits total pour la transaction</localized_desc>
                    </description>
                    <substitute>TOTAL_BYTES</substitute>
                </tag>
                <tag name="recipient_count" tagType="Anything">
                    <description>
                        <localized_desc language="en"></localized_desc>
                        <localized_desc language="fr"></localized_desc>
                    </description>
                    <substitute>RECIPIENT_COUNT</substitute>
                </tag>
                <tag name="related_recipient_address" tagType="Anything">
                    <description>
                        <localized_desc language="en"></localized_desc>
                        <localized_desc language="fr"></localized_desc>
                    </description>
                    <substitute>RELATED_RECIPIENT_ADDRESS</substitute>
                </tag>
                <tag name="reference" tagType="Anything">
                    <description>
                        <localized_desc language="en"></localized_desc>
                        <localized_desc language="fr"></localized_desc>
                    </description>
                    <substitute>REFERENCE</substitute>
                </tag>
                <tag name="message_subject" tagType="Anything">
                    <description>
                        <localized_desc language="en">the message's subject</localized_desc>
                        <localized_desc language="fr">le sujet du message</localized_desc>
                    </description>
                    <substitute>MESSAGE_SUBJECT</substitute>
                </tag>
                <tag name="message_sender" tagType="Anything">
                    <description>
                        <localized_desc language="en">the sender's address</localized_desc>
                        <localized_desc language="fr">l'adresse de l'expéditeur</localized_desc>
                    </description>
                    <substitute>SENDER_ADDRESS</substitute>
                </tag>
                <tag name="return_path" tagType="Anything">
                    <description>
                        <localized_desc language="en">the return path</localized_desc>
                        <localized_desc language="fr">l'adresse de retour</localized_desc>
                    </description>
                    <substitute>RETURN_PATH</substitute>
                </tag>
                <tag name="message_info" tagType="Anything">
                    <description>
                        <localized_desc language="en">some additional information about the message</localized_desc>
                        <localized_desc language="fr">de l'information supplémentaire sur le message</localized_desc>
                    </description>
                    <substitute>MESSAGE_INFO</substitute>
                </tag>
            </tags>
            <commonTags>
                <commonTag name="program">MS Exchange 2007 Message Tracking</commonTag>
            </commonTags>
            <examples>
                <example>
                     <text>2010-04-19T12:29:07.390Z,10.10.14.73,WIN2K3DC,,WIN2K3DC,"MDB:ada3d2c3-6f32-45db-b1ee-a68dbcc86664, Mailbox:68cf09c1-1344-4639-b013-3c6f8a588504, Event:1440, MessageClass:IPM.Note, CreationTime:2010-04-19T12:28:51.312Z, ClientType:User",,STOREDRIVER,SUBMIT,,&lt;C6539E897AEDFA469FE34D029FB708D43495@win2k3dc.qa.ifr.lan&gt;,,,,,,,Coucou !,user7@qa.ifr.lan,,</text>
                     <expectedTags>
                          <expectedTag name="program">MS Exchange 2007 Message Tracking</expectedTag>
                          <expectedTag name="source_ip">10.10.14.73</expectedTag>
                          <expectedTag name="source_host">WIN2K3DC</expectedTag>
                          <expectedTag name="dest_host">WIN2K3DC</expectedTag>
                          <expectedTag name="mailbox">68cf09c1-1344-4639-b013-3c6f8a588504</expectedTag>
                          <expectedTag name="client_type">User</expectedTag>
                          <expectedTag name="exchange_source">STOREDRIVER</expectedTag>
                          <expectedTag name="event_id">SUBMIT</expectedTag>
                          <expectedTag name="message_id">C6539E897AEDFA469FE34D029FB708D43495@win2k3dc.qa.ifr.lan</expectedTag>
                          <expectedTag name="message_subject">Coucou !</expectedTag>
                          <expectedTag name="message_sender">user7@qa.ifr.lan</expectedTag>
                          <expectedTag name="taxonomy">mail</expectedTag>
                     </expectedTags>
                </example>
            </examples>
        </pattern>
    </patterns>
</normalizer>