Logged User Search Queries on Confluence

XMLWordPrintable

    • 6
    • 29

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      Request Background

      Currently, Confluence does not provide the ability to logged search queries run by users. Having this information will allow administrator to compile data such as the necessary content that is not in Confluence yet.

      This will also help to arrange the information architecture to their behavior and to feed the Synonym plugin.

      Potential workarounds

      This information can be captured as part of access logging through Tomcat Valve (instructions). The below is an example of what Tomcat's access logging looks like when someone searches for "Example Search Query":

      [17/Mar/2017:16:37:57 -0500] admin Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36 0:0:0:0:0:0:0:1 GET GET /confluence/dosearchsite.action?queryString=Example+Search+Query HTTP/1.1 6651 200 http-nio-55912-exec-3
      

      If you have this type of logging enabled, either in Tomcat itself or in a reverse proxy, look for "dosearchsite.action" and parse out the data after "queryString=".

            Assignee:
            Sherif Mansour
            Reporter:
            Septa Cahyadiputra (Inactive)
            Votes:
            103 Vote for this issue
            Watchers:
            75 Start watching this issue

              Created:
              Updated: