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 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

315 views 1 4
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