15-6
User Guide for Cisco Security MARS Local Controller
78-17020-01
Chapter 15 Configuring Custom Devices
Adding User Defined Log Parser Templates
Figure 15-6
Define Event Patterns
Step 12
Click
Add
to input patterns.
The parsing patterns for the example above are specified to match the following example raw message
reported in an event.
Teardown TCP connection 1000 faddr 67.126.151.132/80 gaddr 198.133.219.28/43246 laddr
10.1.1.30/890 (sudha) duration 01:00:02 bytes 1000000 (TCP FINs)
Step 13
The first step is to identify the values in the log that need to be parsed and stored in MARS events.
Step 14
Currently MARS supports the following parsed value fields in its events:
•
Source address
•
Destination address
•
Source port
•
Destination Port
•
Protocol
•
NAT Source address
•
NAT Destination address
•
NAT Source port
•
NAT Destination Port
•
NAT Protocol
•
Device Time stamp
•
Session Duration
•
Received Time stamp
•
Exchanged Bytes
•
Reported User
Step 15
The parsing format can now be thought of as being made up of several KEY pattern followed by VALUE
patterns. Both KEY and VALUE patterns are regular expressions based on the library PCRE which is
perl-compatible regular expressions (
Appendix B, “Regular Expression Reference.”
for details on
syntax). Note that a KEY can be an empty string. A log format consists of several KEY-VALUE
sub-pattern pairs.