Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44567

Timestamp duplicated in syslog message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: syslog-logger-plugin
    • Labels:
      None
    • Environment:
      Jenkins latest (via docker)
    • Similar Issues:

      Description

      I'm logging from the plugin to an rsyslog server. I'm getting duplicate timestamps in my syslog messages.

      Example from Jenkins UI system log:

      May 30, 2017 9:53:16 PM INFO hudson.slaves.RetentionStrategy$Demand check
      Launching computer nettools1-centralus as it has been in demand for 8 hr 13 min
       

      Example in /var/log/syslog on the rsyslog server:

      May 30 22:12:14 aznetsysjenkins INFO jenkins May 30, 2017 10:12:14 PM hudson.slaves.RetentionStrategy$Demand check#012INFO: Launching computer nettools1-centralus as it has been in demand for 8 hr 32 min

      File format template:

      $template ACSFileFormat,"%TIMESTAMP% %HOSTNAME% %syslogseverity-text:::uppercase% %syslogtag%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"

       

      It looks to me like the java logger format being used inserts the timestamp into the Message field for some reason. This seems a duplicate. Can someone look at the code?

       

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            cleclerc Cyrille Le Clerc
            Reporter:
            johnar John Arnold
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: