• Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • None
    • 10
    • 7
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

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

      Problem Definition

      Logs can fill with HeartbeatAction errors in certain circumstances that end up generating excessive log files.

      2015-10-09 14:46:14,400 ERROR [http-nio-443-exec-13] [atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action
       -- referer: http://wiki.mycompany.com.au/pages/editpage.action?pageId=987654 | url: /json/startheartbeatactivity.action | userName: anonymous
      java.lang.NullPointerException
      ...
      

      Suggested Solution

      Please change the default product configuration to include the workaround to set the following attribute to:

      log4j.logger.com.atlassian.confluence.pages.actions.HeartbeatAction = OFF

      Workaround

      In <Confluence-Install>/confluence/WEB-INF/classes/log4j.properties file:

      1. Open the log4j.properties file in a text editor
      2. Add the string displayed below to a new line in the log4j.properties file:
        log4j.logger.com.atlassian.confluence.pages.actions.HeartbeatAction = OFF
      3. Save the log4j.properties file
      4. Restart Confluence

            [CONFSERVER-39531] Disable HeartbeatAction logging in Confluence

            the modes to log4j.properties does NOT work for us in 8.5.4 DC

            Sandi Ameen added a comment - the modes to log4j.properties does NOT work for us in 8.5.4 DC

            Ryan Goodwin added a comment - - edited

            Per: https://confluence.atlassian.com/confkb/configuring-log4j-to-filter-out-unwanted-messages-in-confluence-application-log-1002475123.html

            Incase anyone looking to declutter the access logs from heartbeat activity :

            # access log heartbeatactivity filter out
            log4j.appender.accesslog.filter.1=org.apache.log4j.varia.StringMatchFilter
            log4j.appender.accesslog.filter.1.StringToMatch=heartbeatactivity
            log4j.appender.accesslog.filter.1.AcceptOnMatch=false 

            Ryan Goodwin added a comment - - edited Per:  https://confluence.atlassian.com/confkb/configuring-log4j-to-filter-out-unwanted-messages-in-confluence-application-log-1002475123.html Incase anyone looking to declutter the access logs from heartbeat activity : # access log heartbeatactivity filter out log4j.appender.accesslog.filter.1=org.apache.log4j.varia.StringMatchFilter log4j.appender.accesslog.filter.1.StringToMatch=heartbeatactivity log4j.appender.accesslog.filter.1.AcceptOnMatch= false

            Is there a way to turn this off in the access logs as well? It makes up the bulk of the logs and is not helpfu.

            Ryan Goodwin added a comment - Is there a way to turn this off in the access logs as well? It makes up the bulk of the logs and is not helpfu.

            Chul Kim added a comment -

            I agree: the message is annoying to say the least. It is misleading.

            Chul Kim added a comment - I agree: the message is annoying to say the least. It is misleading.

            jndeverteuil added a comment - - edited

            Hello,

            I confirm seeing this error as well while editing Global Templates on Confluence 6.6.0.

            2018-11-21 13:59:19,548 ERROR [http-nio-8090-exec-3] [confluence.pages.actions.HeartbeatAction] startActivity No content found or no permission to view content with contentId: 589825
             -- referer: http://ADDRESS_REMOVED/pages/templates2/editpagetemplate.action?entityId=589825 | url: /json/startheartbeatactivity.action | traceId: 1bc0396052989dc4 | userName: someUserName | action: startheartbeatactivity
            

            jndeverteuil added a comment - - edited Hello, I confirm seeing this error as well while editing Global Templates on Confluence 6.6.0. 2018-11-21 13:59:19,548 ERROR [http-nio-8090-exec-3] [confluence.pages.actions.HeartbeatAction] startActivity No content found or no permission to view content with contentId: 589825 -- referer: http: //ADDRESS_REMOVED/pages/templates2/editpagetemplate.action?entityId=589825 | url: /json/startheartbeatactivity.action | traceId: 1bc0396052989dc4 | userName: someUserName | action: startheartbeatactivity

            Anders Lantz added a comment - - edited

            Seeing this quite frequently in the logs of 6.1.3, i´d be nice if there was a GUI/non restart way of disabling this logging.

            Anders Lantz added a comment - - edited Seeing this quite frequently in the logs of 6.1.3, i´d be nice if there was a GUI/non restart way of disabling this logging.

              Unassigned Unassigned
              73f0b2e75f82 Sorin Sbarnea (Citrix)
              Votes:
              53 Vote for this issue
              Watchers:
              36 Start watching this issue

                Created:
                Updated: