SunScreen 3.2 Administrator's Overview

General Event Type Enhancements

In addition to network packet traffic, logs can contain session summary events and extended log events. Each of these is represented by a different log record format.

Session summary events contain source and destination information regarding the session (for example, IP addresses and port numbers), plus ending statistics for the session. Extended log events are produced by various program components as previously described. logdump displays these new event types.

logdump allows discrimination of these types from network packet traffic events. The loglvl operator is provided to select network packet traffic, session summaries, authentication, and application events.

Log Record Format

The table below contains examples of the logdump filters that you can use to restrict the display of various events.

Table 11-4 Examples: Filters for Restriction Various events

Filter 

Description 

loglvl pkt

Restricts output to network packet traffic events. The logiface and logwhy operators imply loglvl pkt.

loglvl sess

Restricts output to session summary events. In previous SunScreen releases, the sas_logdump command had-S and -s options that provided a crude form of the loglvl sess feature. Those options are no longer supported.

loglvl auth

Restricts output to authentication events. 

loglvl app

Restricts output to application events. 

The filtering mechanisms inherited from snoop related to IP addresses (for example, host, to, from, dst, src, and naked IP addresses and hostnames) have been extended to filter all event types that contain corresponding IP addresses. For example:


admin% ... ssadm log get from src_host > out_log

matches packet, session, and extended events that originated from the given source host.

Similarly, the filtering mechanisms inherited from snoop that are related to TCP and UDP ports (for example, port, dstport and srcport) have been extended to filter all event types that relate to the corresponding services. For example:


admin% ... ssadm log get port svc > out_log

matches packet, session, and extended events that relate to the given service.

Extended Log Event Enhancements

The extended events added to the SunScreen log contain additional fields as previously described (severity code and program component name). The extended log mechanism has been generalized to enable a wide variety of events to be recorded in the log. Because of the self-described syntax used, virtually any event can be added to the log in this manner.

logdump allows discrimination of extended events based on their severity code. The logsev operator provides this ability. The operand for logsev is one of the severity pseudonyms emerg, alert, crit, err, warn, note, info, or debug. These same designators are used to restrict the actual logging of these events. For example:


admin% ssadm -r Screen log get | ssadm logdump -i- logsev warn ...

matches extended events of a severity warning or greater.

logdump allows discrimination of extended events based on the name of the program component that logged them. The logapp operator performs this restriction. The operand for logapp is a string that is the name of a program component. For example:


admin% ssadm -r Screen log get | ssadm logdump -i- logapp ftpp ...

matches extended events for the FTP proxy.


Note -

The logsev and logapp operators imply a filter of ( loglvl auth or loglvl app ).


All extended log events share some common optional attributes. These attributes are optional because they only occur in log events where they make sense. They are common in the sense that they are handled in a consistent way. These attributes are shown in the table below.

Table 11-5 Optional Attributes

Attribute 

Description 

sess_ID

A session serial number, used to recognize various events that are related to each other 

proto_ip

IP protocol number (usually 6 for TCP or 17 for UDP) 

src_ip

IP source address 

src_port

IP source port number 

dst_ip

IP destination address 

dst_port

IP destination port number 

reason

Short description of the event 

msg

Generic message text