From owner-freebsd-hackers@freebsd.org Sun Apr 1 00:27:33 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7076EF6B935 for ; Sun, 1 Apr 2018 00:27:33 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-ot0-x232.google.com (mail-ot0-x232.google.com [IPv6:2607:f8b0:4003:c0f::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 015817EF73 for ; Sun, 1 Apr 2018 00:27:33 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-ot0-x232.google.com with SMTP id j8-v6so5135240ota.7 for ; Sat, 31 Mar 2018 17:27:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=0058BcE/Rfm9GBXM97Y9/r5DWPutpSepDf28BnU7g4U=; b=sAoiWT6d1PO2rZqhfbOqoXSK411Hkbp21FjrZvRbUsD6oUQvZXX+dPA3KGw+h3HJEc eHoiTJ9tIn2fkSIEEFVOgNzAYO970OnwTCHDndX1LdIwtW0tE6TPkcLV2WgLvjt7Y4rx 0Las6epzsVZgdRbzm4dMO7PW+3FQGfmr7Lekv2PwVWmM+Jr9xGZcv+PWcVjt5GEZDCFc YkG5pG6JFgGCZIw3OLSvB5UYSabbaISbIJN+DI20xBpnKSFxAZROagUJBXiOKk53zxP1 MDTmhoyXPMlqWHZWZxUtHw6qtYSxz1rgkKitOE6CVt9aivITEenChqXphOW119CVZKEJ hRuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0058BcE/Rfm9GBXM97Y9/r5DWPutpSepDf28BnU7g4U=; b=oCA5dn3vLwwHylUXXIz8qDwf4OmM4uxQSbFWlZlDwwGuAQVrX4N5yQ+IfMTH9aKlST JLUyKNWekX1xo2vz0sQTCunFKipG04MjtjyPI/9INqZLFw0hxoLHVHTqFGm/0RXMjqn2 8Gmy/WIfnCeT4Dv/oapjuXUhpcMP96yVAq+5MiVITBvZMRJBjudx/eNh0tcWthfjGlPj om1y1A52fLv9HS6YpmZPSqn3AgLnP2K74SsXu8dWcLWAx0kbj1HLAWtbUvSDxgyTSXy/ VydBZpy+tfIqmsXB/ioYjZ9kes4Pv49pGNVMnbUr1wzSnzxiKS3IwVCp6W5CLPjlQvpw 4qsQ== X-Gm-Message-State: AElRT7Hk8Bmwlm/5Dvbg5kGDxUXx6xMwGNDP/d1HV4pjajyabGW/j8Hh X2rR1JDd/lP3vT8E8b+kveqvWwzRew4FKxdD4CNYsQ== X-Google-Smtp-Source: AIpwx4/xKSsJTaA61XYYyacRFxR9cwtvu7rAwRfuUaLnZw3wx2CuwnRt32G/OSzs9RuNeA7NDOwHbxIxLb+sQdEhq9c= X-Received: by 2002:a9d:621a:: with SMTP id g26-v6mr2434589otj.288.1522542452039; Sat, 31 Mar 2018 17:27:32 -0700 (PDT) MIME-Version: 1.0 From: Ben Woods Date: Sun, 01 Apr 2018 00:27:21 +0000 Message-ID: Subject: Add option -Z to syslogd(8) to use ISO 8601 timestamps To: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2018 00:27:33 -0000 Hi everyone, Please review my patch to add the -Z option to syslogd(8) to use ISO 8601 timestamps in UTC: https://reviews.freebsd.org/D14918 This patch was taken from OpenBSD, and is the first of many features from RFC5424 that we should be looking to add to syslogd(8) in FreeBSD. BACKGROUND: I have been centralising my logs lately, and found that they had different timezones, but the RFC3164 syslog timestamp format does not include the timezone. The servers had their timezones set to UTC, whilst the workstations had their timezones set to the local timezone. This made it difficult to correlate events across machines, as my log analysis tool had simultaneous events entered with timestamps many hours apart. I have added a few people to the review who last touched syslogd(8) - sorry to those people, just trying to get reviewers :) Regards, Ben -- -- From: Benjamin Woods woodsb02@gmail.com