Get the list of all JQL's fired in JIRA

I am interested in getting all the JQL's that are fired by a JIRA instance, the atlassian-jira-slow-queries.log will only log the queries that take > 400ms to that leaves me with remaining queries that take < 400 ms to execute.

3 answers

This widget could not be displayed.

Every jql query internally fires a database query. The slow query logs actually display the sql queries. The complete list will almost cannot end.

All JQLs fire SQL ? whats the purpose of Lucene Indexes ?

I don't think Sateesh meant to say that. JQL doesn't generally run much SQL against your database - it does check permissions, but most of the work in a search is done against the Lucence index. So whatever you're really looking for here, you're probably looking in the wrong place. Could you explain why you think you want to do this? What's the problem you're trying to solve by looking at JQL activity?

I am looking for all JQL's fired during a time period and optimize them...well i understand if a JQL takes <400ms there is nothing to worry about it..still checking out if i can get the complete list.

You can't "optimise" JQL. It's not SQL.

This widget could not be displayed.

If you must, turn on access logs and use some tools like the ELK stack to drill down the JQL calls.

hmm looks like an option. will try it

This widget could not be displayed.

From my older book "Practical JIRA Plugins" (O'Reilly):


You can display the original JQL query and its associated Lucene query in the JIRA log file by adding the following lines to file: = \ INFO, console, filelog = false 

but this is likely to impact your JIRA performance

Suggest an answer

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

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

206 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you