It's all about the answers!

Ask a question

reload log4j settings


Kanagasabapathi R (17314) | asked Aug 18 '20, 7:09 a.m.

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

Accepted answer


permanent link
Ralph Schoon (63.3k33646) | answered Aug 18 '20, 8:25 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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

Your answer


Register or 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.