storm
storm copied to clipboard
[STORM-4019] Missing some parameters while logging external API calls
Hi, I am upgrading the Apache Storm from version 1.2.2 to 2.4.0
and while logging the external API calls, I am not getting the desired output format based on worker.xml mentioned in log4j2 directory
Attaching screenshots
- Screenshot 2024-01-16 at 4.37.20 PM.png -> apache storm 2.4.0 logs
- Screenshot 2024-01-16 at 4.38.26 PM.png -> apache storm 1.2.2 logs
- worker.xml -> log4j configuration file
Problem -> I am passing cid and rid from the logger that is getting printed in the apache storm 1.2.2 logs but not in 2.4.0
Originally reported by arthg, imported from: Missing some parameters while logging external API calls
- status: Reopened
- priority: Minor
- resolution: Unresolved
- imported: 2025-01-24
rzo1:
Storm 1.2.4 uses log4j2 2.8.2 while we are on log4j2 2.17.1 on Storm 2.4.0 - does it look similar, if you upgrade log4j2 on 1.2.4 by replacing the related jars?
Hi Richard Zowalla, the issue I am facing is on the newer version 2.4.0, on the older version which is 1.2.2 it is working as expected.
rzo1:
Yup - both use log4j2. I am wondering if it is an Storm issue or due to the difference in log4j2 versions. They might be compatible, so can you test by manually upgrading log4j2 on your 1.2.2 cluster and check if the log behaves as expected with your config? If so, we can dig further.
Might also be good to get a small self containerdcode sample.