Currently there are a few fields and specific values you would have to include - we are working on making this experience better but this should get you going. I have tested a sample flow using
Original Message:
Sent: Thu May 18, 2023 04:47 AM
From: Sainath Reddy Police
Subject: Configuring log4j on App Connect as service on AWS
Hi Martin Ross,
I have implemented the Log4j in Compute node as you have mentioned earlier and its working for me.
Although i have one question in log4j2.xml, in the toolkit locally i am able to create the entries for log4j and lets say i deploy the same bar file on App Connect Dashboard what value should i give in place of below fields in log4j2.xml. so that i can see the log4j entries on dashboard.
<Property name="basePath">/tmp</Property>
<File name="FILE" fileName="${basePath}/logfile.log" append="true">
Please find the attached screenshot.
Thanks and Regards,
Sainath reddy
------------------------------
Sainath Reddy Police
Original Message:
Sent: Wed May 17, 2023 12:14 PM
From: Sainath Reddy Police
Subject: Configuring log4j on App Connect as service on AWS
Hi Martin Ross,
Thank you for your response.
I will implement it and let you know how it goes.
Thanks and Regards,
Sainath
------------------------------
Sainath Reddy Police
Original Message:
Sent: Wed May 17, 2023 12:01 PM
From: Martin Ross
Subject: Configuring log4j on App Connect as service on AWS
Hello,
You can use the ESQL CREATE function and CALL procedure within a Compute Node to call functions written in Java from ESQL. Please see following App Connect Enterprise documentation for further details:
https://www.ibm.com/docs/en/app-connect/12.0?topic=esql-using-call-statement-call-user-written-routine
https://www.ibm.com/docs/en/app-connect/12.0?topic=statements-create-function-statement#ak04960___ak04960_jmp8__title__1
------------------------------
Martin Ross
IBM
Original Message:
Sent: Wed May 17, 2023 11:29 AM
From: Sainath Reddy Police
Subject: Configuring log4j on App Connect as service on AWS
Hi Martin Ross,
Thanks for your reply.
Could you please let me know how to implement log4j using compute node and deploy that app on App Connect Dashboard.
Thanks and Regards,
Sainath Reddy
------------------------------
Sainath Reddy Police
Original Message:
Sent: Wed May 17, 2023 04:08 AM
From: Martin Ross
Subject: Configuring log4j on App Connect as service on AWS
Hello,
Hopefully you can see from the screenshot below, you can use Log4j within a Java Compute Node by including JARs and configuration in the BAR file. I achieved this here by switching to the "Navigator" view and putting the JAR files alongside my .java and .class files in /com/martin (and updating the Java Build Path the reference them) and putting the log4j2.xml in the root of the Java project.
------------------------------
Martin Ross
IBM
Original Message:
Sent: Fri May 12, 2023 04:51 PM
From: Sainath Reddy Police
Subject: Configuring log4j on App Connect as service on AWS
Hello,
I am exploring App Connect as service on AWS and i need help Configuring log4j on App Connect as service on AWS.
Could you please help me out if anyone has Configured log4j on App Connect as service on AWS.
Thanks and Regards,
Sainath
------------------------------
Sainath Reddy Police
------------------------------