Sunday, November 3, 2013

Log filters weblogic


Log Filters
Log filters provide control over the log messages that are published. A filter uses custom logic to evaluate the log message content, which you use to accept or reject a log message—for example, to filter out messages of a certain severity level from a particular subsystem (for example, JMS or MQ) or according to a specified criteria (for example, only during peak business hours). Only the log messages that satisfy the filter criteria are published. You can create separate filters for the messages that each server instance either writes to its server log file, standard out, or memory buffer, or broadcasts to the domainwide message log.

 
Creating a Log Filter
1.  In the left pane of the console, select the name of the active domain in the Domain Structure panel.
2.  On the Configuration: Log Filters page, click New.
3.  On the Create a New Log Filter page, enter a value to identify the filter in the Name field. Do not put single quotation marks around the value when you type it; the system will add the quotation marks automatically.
4.  Click Finish.
5.  The new log filter appears in the Log Filters table. To configure a filter expression, click the log filter name.
6.  On the Configuration page, specify the criteria for qualifying messages. A filter expression defines simple filtering rules to limit the volume of log messages that are written to a particular log destination. Either enter the expression manually or construct one by using the supplied buttons.
7.  Expression clauses can perform a comparison against any log message attribute, including severity and subsystem.

 

 



Applying a Log Filter
There are four sets of logs that you can apply filters to. The Log file and Standard out are shown; the Domain log broadcaster and Memory buffer are not shown.
1.  In the left pane of the console, expand Environment and select Servers.
2.  Under Servers, click the name of the server instance whose logging you want to configure. In this example, it is MedRecSvr1.
3.  Click the Logging > General tab.
4.  On the Logging: General page, click Advanced.
5.  Under the Message destination(s) section, specify an existing filter for messages going to any combination of the four log message destinations (Log file, Standard out, Domain log broadcaster, and Memory buffer).


Using the Console to Monitor
Whenever a service or an application object can be monitored, a Monitoring tab is available in the Console for that object. Clicking it shows you the available monitoring information for the selected object.
Moreover, when the Monitoring page shows information in tabular format, you can change the way the information is displayed. To do this, click the “Customize this table” link and choose which columns to display and on what columns to sort the table.


Monitoring Individual Servers
When you select a specific server from the domain/Servers element of the left-most console pane, a server-specific monitoring page is displayed. A large amount of detailed monitoring information can be obtained about any running instance of Oracle WebLogic Server. The Performance tab shows a running numerical output of request throughput, waiting request, and memory in use, and gives a fast indication of server performance. For a graphical view, use the WLDF Console Extension tab.
Additionally, in-depth information is available about a server’s associated cluster, such as multicast packet loss, packet fragments, and so on. The Security tab provides statistics specific to security such as invalid logins and locked-out users. The remaining tabs provide in-depth information about their associated service.