background image

Release 2008.2

Creating Extension Documents

9

 <matcher field="DestinationPort" order="1" pattern-id="DestinationIp" capture-group="2" />

 

 <matcher field="Protocol" order="1" pattern-id="Protocol" capture-group="1" />

 

 <matcher field="Protocol" order="2" pattern-id="Protocol_6" capture-group="TCP" 

enable-substitutions=”true”/>

 <event-match-multiple pattern-id="EventNameId" capture-group-index="1" 

device-event-category="Cisco Firewall"/>

 

</match-group>

</device-extension>

The above extension document example demonstrates some of the basic aspects 
of parsing: 

IP addresses 

Ports 

Protocol 

Multiple fields using the same pattern with different groups 

This example parses all FWSM events that follow the specified pattern, although 
the fields that are parsed may not be present in those events (if the events include 
different content).

The information that was necessary to create this configuration that was not 
available from the event: 

The event name is only the last six digits (

302015

) of the 

%FWSM-session-0-302015

 portion of the event. 

The FWSM has a hard-coded device type category of 

Cisco Firewall

The FWSM uses the Cisco Pix QID and therefore includes the 

device-type-id-override="6"

 parameter in the match group (the Pix 

firewall’s device type ID is 6, see 

Table 6

). 

If the QID information is not specified or is unavailable, you can modify the event 
mapping using the Event Viewer. For more information, see the Modifying Event 
Mapping section in the STRM Users Guide. 

An event name and a device event category is required when looking for the event 
in the QID. This device event category is a grouping parameter within the database 
that helps define like events within a device. The 

event-match-multiple

 at the 

end of the match group includes hard-coding of the category. The 

event-match-multiple

 uses the EventNameId pattern on the parsed event 

name to match up to six digits. This pattern is not run against the full payload, just 
that portion parsed as the EventName field. 

The EventName pattern references the 

%FWSM

 portion of the events; all Cisco 

FWSM events contain the 

%FWSM

 portion. The pattern in the example matches 

%FWSM

 followed by any number (zero or more) of letters and dashes. This pattern 

match resolves the word 

session

 that is embedded in the middle of the event 

name that needs to removed. The event severity (according to Cisco), followed by 

Содержание NETWORKS STRM - TECHNICAL NOTE REV 6-2008

Страница 1: ...to various device types Using an extension document you can resolve parsing issues such as Fixing an event that has missing or incorrect fields for example if the username is not being parsed Completi...

Страница 2: ...ch groups may appear in the extension document Table 1 Pattern Parameters Parameter Description id Required Specify a regular string that is unique within the extension document case insensitive Optio...

Страница 3: ...st be a valid device type ID represented as an integer A list of device type IDs is presented in Table 6 If not specified this parameter defaults to the device type of the device to which the extensio...

Страница 4: ...nted with a straight group capture You can combine multiple groups together with extra text to form a value This parameter enables that behavior This parameter changes the meaning of the capture group...

Страница 5: ...ource MAC address for the message SourcePortPreNAT Specify the source port for the message before NAT occurs SourcePortPostNAT Specify the source port for the message after NAT occurs DestinationIp Sp...

Страница 6: ...port based protocols UserName Specify the user name associated with the event HostName Specify the host name associated with the event This field is usually only associated with identity events GroupN...

Страница 7: ...ation on creating extension documents including Writing a Complete Extension Document Uploading Extension Documents Solving Specific Parsing Issues send identity Specifies the sending of identity chan...

Страница 8: ...ld could use the exact same pattern in this case this may not be true in all FWSM events xml version 1 0 encoding UTF 8 device extension xmlns event_parsing device_extension pattern id EventNameFWSM x...

Страница 9: ...l The FWSM uses the Cisco Pix QID and therefore includes the device type id override 6 parameter in the match group the Pix firewall s device type ID is 6 see Table 6 If the QID information is not spe...

Страница 10: ...ce of TCP UDP ICMP or GRE the pattern is marked with the case insensitive parameter so that any occurrence matches Note You must search for the protocol when writing extension documents as STRM may no...

Страница 11: ...The following is an example of a straight substitution that parses the source IP address and then overrides the result and sets the IP address to 10 100 100 100 ignoring the IP address in the payload...

Страница 12: ...llowing example is similar to the above single event example except that this example matches all event codes starting with 7 and followed by one to five digits pattern id EventNameId xmlns CDATA 7 d...

Страница 13: ...x login messages 12 WindowsAuthServer Windows Security Event Log 13 IIS Windows IIS Webserver logs 14 Iptables Linux iptables Firewall 15 Proventia ISS Proventia Device 16 Classify Q1Labs Classify Eng...

Страница 14: ...niper Infranet Controller 60 PDSN Sprint PoC PDSN 61 RNC Sprint PoC RNC 62 BTS Sprint PoC BTS 63 ACS Cisco ACS 64 JuniperRouter Juniper Router 65 Sprint Sprint PoC 66 CallManager Cisco Call Manager 67...

Страница 15: ...Nortel Switched Firewall 6000 105 Q1Labs QRadar Q1Labs QRadar 106 3Com 8800 Series Switch 3Com 8800 Series Switch 107 Nortel VPN Gateway Nortel VPN Gateway 108 NortelTPS Nortel Threat Protection Intru...

Страница 16: ...trademarks or registered service marks in this document are the property of Juniper Networks or their respective owners All specifications are subject to change without notice Juniper Networks assumes...

Отзывы: