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
Accepted answer
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.