Skip Ribbon Commands
Skip to main content
Navigate Up
Sign In

Quick Launch

Average Rating:

facebook Twitter
Email
Print Bookmark Alert me when this article is updated

Feedback

HOW TO: Enable Apache Tomcat Accessor Valve logging for Admin Console in PowerCenter
Solution
In PowerCenter, do as follows to enable the Apache Tomcat Accessor Valve to log URL access requests:
  1. Stop the domain.
  2. Edit INFA_HOME/tomcat/conf/server-minimal.xml
    From:
    <Server port="9005" shutdown="SHUTDOWN">
    <!-- Prevent memory leaks due to use of particular java/javax APIs-->
    <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
    <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />

    <Service name="Catalina">
    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
      maxThreads="200" minSpareThreads="4"/>

    <Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" />

    <Engine name="Catalina" defaultHost="localhost">
    <Host name="localhost"  appBase="webapps">​
    </Host>
    </Engine>
    </Service>
    </Server>​

    To:

    <Server port="9005" shutdown="SHUTDOWN">
    <!-- Prevent memory leaks due to use of particular java/javax APIs-->
    <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
    <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />

    <Service name="Catalina">
    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
    maxThreads="200" minSpareThreads="4"/>

    <Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" />

    <Engine name="Catalina" defaultHost="localhost">
    <Host name="localhost"  appBase="webapps">
    </Host>

    <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%a %h %A %H %m %p %r %s %t %U %D %T" prefix="localhost_access_log." resolveHosts="false" suffix=".txt"/>

    </Engine>
    ​</Service>
    </Server>

  3. Restart the domain.
  4. As required, repeat on any gateway node
After the Informatica Administrator is accessed through a browser, a file similar to INFA_HOME/tomcat/temp/_AdminConsole/logs/localhost_access_log.<date>.txt  would be created with the similar following entries:

10.1.203.24 10.1.203.24 10.21.152.93 HTTP/1.1 GET 8443 GET /administrator/ HTTP/1.1 200 [03/Oct/2016:09:29:49 -0700] /administrator/ 223 0.223
10.1.203.24 10.1.203.24 10.21.152.93 HTTP/1.1 GET 8443 GET /administrator/console/css/acsymphony.css HTTP/1.1 304 [03/Oct/2016:09:29:49 -0700] /administrator/console/css/acsymphony.css 6 0.006
10.1.203.24 10.1.203.24 10.21.152.93 HTTP/1.1 GET 8443 GET /administrator/console/css/about.css HTTP/1.1 200 [03/Oct/2016:09:29:49 -0700] /administrator/console/css/about.css 8 0.008
10.1.203.24 10.1.203.24 10.21.152.93 HTTP/1.1 GET 8443 GET /administrator/console/css/uum.css HTTP/1.1 200 [03/Oct/2016:09:29:49 -0700] /administrator/console/css/uum.css 89 0.089
10.1.203.24 10.1.203.24 10.21.152.93 HTTP/1.1 GET 8443 GET /administrator/css/infa.css HTTP/1.1 200 [03/Oct/2016:09:29:50 -0700] /administrator/css/infa.css 90 0.090
10.1.203.24 10.1.203.24 10.21.152.93 HTTP/1.1 GET 8443 GET /administrator/console/css/adminconsole.css HTTP/1.1 200 [03/Oct/2016:09:29:50 -0700] /administrator/console/css/adminconsole.css 98 0.098

​​Note

The above steps hold true for the following Java services in the domain:
  • Data Integration service
  • Analyst service
  • Content management service and others.

The corresponding logging would be done in the corresponding $INFA_HOME/tomcat/temp/<java_service_name>/logs  folder. When you wish to generate a single log for all the services (to monitor overall java service), a new logging location could be provided as follows: 

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="<ABSOLUTE_PATH>/ValveAccessLogs" pattern="%a %h %A %H %m %p %r %s %t %U %D %T" prefix="localhost_access_log." resolveHosts="false" suffix=".txt"/>

this would log all the access information in the ValveAccessLogs folder ​(given on the absolute path, should be outside $INFA_HOME/tomcat/temp folder as it is temporary) with localhost_access_log log name. 

The valve logging can grow very fast and hence should be enabled based on the requirements.
​​
More Information
Reference
Click here for more information.
Applies To
Product: PowerCenter; Data Quality
Problem Type: Configuration; Security
User Type: Administrator
Project Phase: Optimize; Configure
Product Version: Informatica 10.1
Database:
Operating System:
Other Software:
Attachments
Last Modified Date:8/19/2019 11:01 PMID:502634
People who viewed this also viewed

Feedback

Did this KB document help you?



What can we do to improve this information (2000 or fewer characters)