rmoff's random ramblings
about talks

Logging specific types of sawserver activity

Published Aug 20, 2009 by in Config, Log, Sawserver at https://preview.rmoff.net/2009/08/20/logging-specific-types-of-sawserver-activity/

As well as tinkering with the sawserver (Presentation Services) logging level and format, we can specific which bits of the log we’re interested in. This is useful for two reasons:

  1. We can enable detailed logging for a specific area, without impacting performance as much as detailed logging throughout would cause
  2. By only logging in detail the area of interest we can more easily read the log output and not have to wade through pages of irrelevant information

Chapter 9 (“Using the Oracle BI Presentation Services Logging Facility”) of the Presentation Services Administration Guide details the log configuration.

To capture, for example, only inbound and outbound HTTP logs, you would amend your logconfig.xml to include this in the section, where path is the restriction you want to apply. [sourcecode language=‘xml’] [/sourcecode]

If you want to write the information to a separate file, define a new Writer: [sourcecode language=‘xml’] […] […] [/sourcecode] (use an unused writerClassId) and WriterClassGroup: [sourcecode language=‘xml’] […] 7 […] [/sourcecode] and use the newly defined WriterClassGroup in the Filter: [sourcecode language=‘xml’] [/sourcecode]

All of the odbc logging will now be written to a file in /tmp called sawodbc0.log.

To get a list of all possible path values, run sawserver with the -logsources commandline option [sourcecode language=‘bash’] $ . ./common.sh $ . ./sa-init.sh $ sawserver -logsources saw saw.SOAP saw.SOAP.JobManagementService saw.answers saw.answers.search saw.authconfigmanager saw.authconfigmanager.initialize saw.cacheseeding saw.catalog saw.catalog.archive saw.catalog.archive.merge saw.catalog.archive.read saw.catalog.archive.write saw.catalog.archive.write.singleobject saw.catalog.file saw.catalog.filelock saw.catalog.impl saw.catalog.impl.cleanup saw.catalog.impl.explainPermissions […etc etc…] [/sourcecode]


Robin Moffatt

Robin Moffatt works on the DevRel team at Confluent. He likes writing about himself in the third person, eating good breakfasts, and drinking good beer.

Story logo

© 2025