Weblogic Log Filters

Hi,
When need to verify weblogic logs with frequency, and it’s too hard because you have a lot of know exceptions: Create a log Filter.

To accomplish that:
– In the left panel of the Console, select the domain.
– On the Configuration, select Log Filters page, click New.


Give a name to filter.

filter1

– Now, select log filter and click in “Edit” to create a “Current Log Filter Expressions”

Some examples below:

Shows in log, only this two BEA Message:
(MSGID IN (‘BEA-310003’, ‘BEA-122004’))

If you want to omit them:
NOT (MSGID IN (‘BEA-310003’, ‘BEA-122004’))

a few more..
(SUBSYSTEM = ‘Deployer’) AND (MESSAGE LIKE ‘%Fatal%’)
(SEVERITY = ‘Debug’) AND (MSGID = ‘BEA-120012’)

More about Expressions can be found here.

At the end, select a server, Logging -> General -> below, Advanced.
On this page you can add your filters.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s