ICS Connectivity Agent stdout Log Rotation by Greg Mally
January 13, 2018 Leave a comment
When monitoring and/or troubleshooting the ICS Connectivity Agent server, it is important to not only have the standard logs (e.g., AdminServer-diagnostic.log) but also the standard out/error (stdout/stderr). One of the big challenges of capturing the stdout is not exhausting the disk storage over time. Since the ICS Connectivity Agent is a WebLogic server installation, there are out-of-the-box options available for redirecting the stdout/stderr (see WebLogic Server logging options). However, there are limitations for using the built-in features of WebLogic which include not capturing all the stdout/stderr (e.g., initial startup output, thread dumps using kill -3). This blog focuses on an option available at the OS level and provides a script to help setup your environment.
One of the requirements of the ICS Connectivity Agent is it must run on Linux (see System Requirements and Restrictions). Because of this requirement, we have a Linux command at our disposal that will help manage the rotation of the agent stdout: logrotate (http://www.linuxcommand.org/man_pages/logrotate8.html). There are plenty of examples of how to use logrotate and if you are a seasoned Linux person, this blog is most likely not needed for you. However, if you want a helper script to get this going for you in the context of the ICS Connectivity Agent then keep reading.
Starting the Connectivity Agent
Part of the ICS Connectivity Agent installation includes a start script (startAgent.sh) that is created in the directory where the agent is installed. In order to make sure the started agent server is not terminated when exiting the shell/terminal, the agent is started using the Linux nohup command. Read the complete article here.
For regular information on Oracle SOA Suite become a member in the SOA & BPM Partner Community for registration please visit www.oracle.com/goto/emea/soa (OPN account required) If you need support with your account please contact the Oracle Partner Business Center.
Blog
Twitter
LinkedIn
Facebook
Wiki
Technorati Tags: SOA Community,Oracle SOA,Oracle BPM,OPN,Jürgen Kress

