It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

View request/response headers in logs

Hi, 

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. 

 

Thanks,

Erik 

1 answer

1 accepted

0 votes
Answer accepted

In case someone stubbles across this post in the future, what worked for me was the following:

  • Enable HTTP Access Logging from Administration - > System - > logging and profiling
    • Enabled HTTP dump as well
  • Adding org.apache.http to Default Loggers
    • Click on the 'Configure logging level for another package' link
    • Set the logging level to TRACE,
      • That low of a level may not be needed (haven't tested the other levels)

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

334 views 1 3
Join discussion

Community Events

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

Events near you