It's all about the answers!

Ask a question

reload log4j settings

Kanagasabapathi R (17110) | 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.

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 file in the respective server.
2. go to server web page - on reload Log settings tab from internal tools and click again Reload Log settings

Accepted answer

permanent link
Ralph Schoon (60.5k33643) | answered Aug 18 '20, 8:25 a.m.
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 ( ).

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