Confluence Usage Stats - Which table?

Anyone out there happen to know which table the Confluence Usage Stats plugin stores it's data? I'd like to access this via the SQL macro so I can slice and dice the data a few ways.

3 answers

First place I'd check is the bandana table. Lots of macros seem to store their data in there. In your SQL, use all caps ("BANDANA") for the table name.

Hi, in BONDANA:

SELECT TOP 1000 [BANDANAID]
,[BANDANACONTEXT]
,[BANDANAKEY]
,[BANDANAVALUE]
FROM [Confluence].[dbo].[BANDANA] 
where [BANDANAKEY]like 'plugin.manager.state.Map'

But the code in table like this:

<map>
  <entry>
    <string>confluence.macros.html:html-migration</string>
    <boolean>true</boolean>
  </entry>
  <entry>
    <string>tac.confluence.languages.fr_FR</string>
    <boolean>false</boolean>
  </entry>
  <entry>
    <string>confluence.macros.html:html-xhtml</string>
    <boolean>true</boolean>
  </entry>
  <entry>
    <string>tac.confluence.languages.es_ES</string>
    <boolean>false</boolean>
  </entry>
  <entry>
    <string>tac.confluence.languages.ja_JP</string>
    <boolean>false</boolean>
  </entry>
  <entry>
    <string>com.adaptavist.plm.plugin.plm-plugin</string>
    <boolean>false</boolean>
  </entry>
  <entry>
    <string>confluence.macros.html:html-include</string>
    <boolean>true</boolean>
  </entry>
  <entry>
    <string>tac.confluence.languages.de_DE</string>
    <boolean>false</boolean>
  </entry>
  <entry>
    <string>confluence.macros.html:html</string>
    <boolean>true</boolean>
  </entry>
  <entry>
    <string>com.atlassian.confluence.plugins.confluence-mobile</string>
    <boolean>false</boolean>
  </entry>
  <entry>
    <string>com.atlassian.confluence.ext.usage</string>
    <boolean>true</boolean>
  </entry>
  <entry>
    <string>confluence.macros.html:html-include-xhtml</string>
    <boolean>true</boolean>
  </entry>
</map>

 

 

It doesn't use the database, it uses Lucene to store the data.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

274 views 11 10
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