Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

reload log4j settings

We came to know that there is an option to reload the log4j settings without restarting the server.

https://jazz.net/forum/questions/97809/how-do-i-reload-the-log4j-settings-without-restarting-the-server-self-answer

We would like to automate the step 3 as mentioned below, we would like to know if there are any rest services already available to achieve that ?

Procedure we planned:
1. we place the updated log4j.properties file in the respective server.
2. go to server web page - https://x.y.z.com/rm/admin?internal=true
3.click on reload Log settings tab from internal tools and click again Reload Log settings

0 votes


Accepted answer

Permanent link
This is most likely not supported API.

The button sends this HTTP request to the server


The request headers contain the JSESSIONID that you get when you login to the server ( https://rsjazz.wordpress.com/2019/05/13/using-a-rest-client-to-authenticate-to-elm-clm-applications/ ).

You can try to login and then send the request above.

If the call worked, you get back an HTTP status 200 and this response body:
{
    "reloaded": true
}
    

You could probably use CURL see https://jazz.net/wiki/bin/view/Deployment/CreateCustomScenarios for an example.

Again, no guarantee if this is going to work or is even supported.


Kanagasabapathi R selected this answer as the correct answer

1 vote

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 7,497
× 6,124
× 1,327

Question asked: Aug 18 '20, 7:09 a.m.

Question was seen: 1,312 times

Last updated: Aug 18 '20, 8:25 a.m.

Confirmation Cancel Confirm