Is it possible to view the Request and Response headers that Jira is receiving/sending in the logs?
As of now, I am only aware of the access_logs file for this type of information. However, the data in the logs does not include the headers (not all, and not the ones we are most interested in.
IP_ADDRESS 936x52140x1 USER [05/Sep/2019:18:03:34 -0400] "POST /rest/api/2/issue HTTP/1.1" 401 - 0 "-" "Apache CXF 2.7.18" "-"
Most of the time the "USER" is not even given (although we know who the user is, as we are testing this POST in a lower environment and tail the logs as we test).
This API call is coming from a Java Spring app.
In case someone stubbles across this post in the future, what worked for me was the following:
The file that contained the desired information was stored in 'atlassian-jira-http-dump.log'.
Please note that the above configurations where implemented on a test instance (not production) and were reset after the logs were captured. This does log a lot of information so it is suggested that you disable the package by setting the logging level to OFF after testing.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events