Querying Log Files for Users
To query log files for users, you must first set an environment variable log level, and add sections to the logreader.cfg file.
Use the following procedures to query log files for users.
To prepare for querying events associated with users
Make sure the SIEBEL_LOG_EVENTS environment variable is set to 4.
For more information about setting environment variables, see Setting Log Levels for Component Event Types.
Add new sections to the logreader.cfg file by doing the following:
Add a SWE=plugin section under the [elements] section.
Create a new [SWE] section with the following:
Path =
<swe log files directory location>
.
Use the following procedure to search log files for events associated with individual users.
To query for events associated with a particular user
Using the command-line interface, enter:
query query_name where user = user_name
where:
query_name is the query command output stored in memory under this name.
user_name is the user of interest in log files.
An example of this query command is as follows:
query asqry where user = asmith
This command queries log files for events associated
with user asmith
and saves the output to memory under
the name asqry
.
For other options of the Log File Analyzer (LFA) query command, see Creating and Saving LFA Queries.