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
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,551 views 25 14
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