The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to specify node id in the log file?

Ahmed Trabelsi
May 28, 2021

Hi,

I have deployed jira data center 8.5 using 2 nodes. In each, i have mentioned the parameter "jira.node.id" in cluster.properties.

The local log file doesn't mention the node id which may complicate troubleshooting while consolidating both log files.

1- How can I add the node id in the log file?

2- Can I trace all inputs in one log file in shared home?

 

Many thanks

Ahmed

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Matti Dennstaedt
September 2, 2025

I added

“-Djira.node.id=node1”

as an additional JVM_ARGS in setenv.sh because log4j cannot access cluster.properties but can read the system variables.

Then enter the following in the pattern in the log4j2.xml configuration:

 ${sys:jira.node.id}

Restart the server once and it should work.

0 votes
Ahmed Trabelsi
March 6, 2023

Hi Community,

Was it feasible to add nodeId in jira log files?

Thanks

Ahmed