ApplicationInsights appender can be added to BW6 logback.xml by following the steps below.
-
Add following jars and dummy ApplicationInsights.xml to D:\tibco\bw\6.4\system\shared\com.tibco.tpcl.logback_1.1.0.001
applicationinsights-core-2.0.0.jar
applicationinsights-logging-logback-2.3.1.jar
applicationinsights-web-1.0.7.jar
ApplicationInsights.xml content:
- Modify c:\tibco_642\bw\6.4\system\shared\com.tibco.tpcl.logback_1.1.0.001\META-INF\MANIFEST.MF by applicationinsights-core-2.0.0.jarapplicationinsights-logging-logback-2.3.1.jar,applicationinsights-web-1.0.7.jar to “Bundle-ClassPath”
-
Modify logback.xml under D:\tibco\bw\6.4\config
- Add appender for applicationinsights, we must change the instrumentationKey based on the ENV
your key
-
Add appender-ref to logger ESB and root as below
-
For existing appnodes,
- we have to replace the existing logback.xml with modified logback.xml in step above(under D:\tibco\bw\6.4\config)
- Delete or rename the config folder of appnode
- Restart the appnode
ApplicationInsights Appender Should we change existing applications? No Should we change existing BW installation? Yes Should we modify existing logback.xml? Yes Do we have parsed output in Azure portal? Yes What happens when Azure or network is down? We lose the logs Is thread blocked No