Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Access-log-analyser-2.0.1 can't analyze atlassian-jira-http-access.log file?

On my standalone Jira server, it generated the access.log files and I ran them through the Access-log-analyser-2.0.1.jar.  It produced some interested stats so I wanted to try it at a customer's Data Center install of 2 Jira nodes.  Either node had any access.log files so I enabled the Jira Http Access logs under "Logging and Profiling." Several atlassian-jira-http-access.log files were generated.

When I ran them under the analyser I got numerous errors:

Reading atlassian-jira-http-access.log% ...
Invalid Status Code '-'. Will try next token...
Invalid Status Code '-'. Will try next token...
Invalid Status Code '-'. Will try next token...
Invalid Status Code '"https://jira.desjardins.com/browse/NEXTCP-13917"'. Will try next token...
Invalid Status Code '"Mozilla/5.0'. Will try next token...
Invalid Status Code '(Windows'. Will try next token...
Invalid Status Code 'NT'. Will try next token...
Invalid Status Code '6.1;'. Will try next token...
Invalid Status Code 'Win64;'. Will try next token...
Invalid Status Code 'x64)'. Will try next token...
Invalid Status Code 'AppleWebKit/537.36'. Will try next token...
Invalid Status Code '(KHTML,'. Will try next token...
Invalid Status Code 'like'. Will try next token...
Invalid Status Code 'Gecko)'. Will try next token...
Invalid Status Code 'Chrome/70.0.3538.110'. Will try next token...
Invalid Status Code 'Safari/537.36"'. Will try next token...
Invalid Status Code '"1gjor3u"'. Will try next token...
Error parsing atlassian-jira-http-access.log% at line 2 : Unable to find a numeric item after the request chunk. Chunk = ' - - - "https://jira.desjardins.com/browse/NEXTCP-13917" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36" "1gjor3u"'
--------------------------------------------------------------------------------

 

So as a brute force fix, I deleted all the lines with ' - - - '. i.e. no timing results
and got the following error:

Reading atlassian-jira-http-access.log ...

Analysing data ...
Detected that access logs are NOT in standard JIRA format - response times will not be analysed.

Unable to detect the context path. Please contact Atlassian

 

Next I added the --context-path='/'  to got the warning:

Using configured context path ''
Reading atlassian-jira-http-access.log ...

Analysing data ...
Detected that access logs are NOT in standard JIRA format - response times will not be analysed.

Writing summary to request-log-summary.wiki
Writing time chart to requests-over-time.html
Writing unrecognised requests to unknown-requests.txt

 

Basically the results with useless.  

Ideas???

Thanks, Brent

2 answers

In the end, the analyzer doesn't play well with the reformatted access logs generated by Jira.  Your linux based Jira should by default generate the standard access_logs under the JIRA_HOME(install) logs directory (i.e. where the catalina.log file is located).   Under normal conditions when you ask a customer for the support.zip file, it won't include these files. You will have to manually request them.

Thanks for reply @Brent Webster I have ended up parsing the Jira Http Access logs myself to extract the information I needed (which was to monitor the external Rest API traffic). 

Hi @Ciaran Service ,

I am looking for same option to monitor external rest API traffic.

Can you please share some thoughts here?

Thnx.

Hi Brent, I'm facing the same problem. Did you get a resolution?

Suggest an answer

Log in or Sign up to answer
TAGS

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