SAS Environment Manager
monitors the log files for SAS servers and automatically creates events
for error messages recorded in those logs. These logs use the standard
logging facilities of SAS. For more information, see SAS Logging: Configuration and Programming Reference. The events are added to the rest of the events recorded
by SAS Environment Manager.
The types of SAS servers
whose logs are used to create events are as follows:
You can also change
the configuration to look for specific types of SAS server log entries
in addition to errors. The file sev_logtracker_plugin.properties contains
entries for each type of SAS server log entry that SAS Environment
Manager looks for. You can add to this file to create events for criteria
of your choosing. Each SAS server has its own properties file, so
logging events can be created for specific server types.
For example, all sev_logtracker_plugin.properties
files contain these entries by default:
# All fatal
level.fatal.1=.*
#
# All errors
level.error.1=.*
#
# User lockout warnings
level.warn.1=.*Access to this account.*is locked out.*
The entries in this file use the format
level.[level_of_message].[sequential_number]=[regular_expression]
.
level.fatal.1=.*
specifies
that an event is created whenever a message appears in the SAS log
with a level of Fatal. The message can contain any text. The second
entry produces the same result for Error messages.
level.warn.1=.*Access
to this account.*is locked out.*
specifies that an event
is created whenever a message with a level of Warn appears that also
contains the text Access to this account.*is locked out
.
To add your own entries
to the properties file in order to create events for specific messages,
follow these steps:
-
Edit the file
<server_config_directory>/sev_logtracker_plugin.properties
(for
example, /opt/
SAS/Lev1/SASApp/OLAPServer/ sev_logtracker_plugin.properties)
-
Add a line for the message
that you want to track. The format is
level.[level_of_message].[sequential_number]=[regular_expression]
For
example, this entry looks for an INFO message containing the phrase
“AUTOEXEC processing beginning”:
level.info.1=.*AUTOEXEC processing beginning.*
.
-
If you add multiple
entries to look for messages at the same log level, increment the
number, for example:
level.info.2=.*Message text here.*
-
Save the file. SAS Environment
Manager automatically uses the revised file.