Uploaded image for project: 'Indy Node'
  1. Indy Node
  2. INDY-1273

Date in log name doesn't accord to the day when the log was rotated

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Complete
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Steps to Reproduce:
      1. Setup the pool and look at logs after several weeks:

      ubuntu@irelandQALarge16:~$ ll /var/log/indy/sandbox/
      total 979552
      drwxrwxr-x 2 indy indy 4096 Apr 16 09:08 ./
      drwxrwxr-x 3 indy indy 4096 Apr 16 00:00 ../
      -rw-rw-r-- 1 ubuntu ubuntu 6815808 Apr 13 15:33 Node16.jctl
      -rw-r--r-- 1 indy indy 36463074 Apr 16 10:33 Node16.log
      -rw-r--r-- 1 indy indy 10388229 Apr 12 19:48 Node16.log.2018-04-09.139.gz
      -rw-r--r-- 1 indy indy 10471811 Apr 12 19:57 Node16.log.2018-04-09.140.gz
      -rw-r--r-- 1 indy indy 10697802 Apr 12 20:06 Node16.log.2018-04-09.141.gz
      -rw-r--r-- 1 indy indy 10650758 Apr 12 20:15 Node16.log.2018-04-09.142.gz
      -rw-r--r-- 1 indy indy 10769480 Apr 12 20:24 Node16.log.2018-04-09.143.gz
      -rw-r--r-- 1 indy indy 10829762 Apr 12 20:32 Node16.log.2018-04-09.144.gz
      -rw-r--r-- 1 indy indy 10408679 Apr 12 20:41 Node16.log.2018-04-09.145.gz
      -rw-r--r-- 1 indy indy 11020262 Apr 12 20:50 Node16.log.2018-04-09.146.gz
      -rw-r--r-- 1 indy indy 10525874 Apr 12 20:58 Node16.log.2018-04-09.147.gz
      -rw-r--r-- 1 indy indy 11599637 Apr 12 21:08 Node16.log.2018-04-09.148.gz
      -rw-r--r-- 1 indy indy 11236593 Apr 12 21:16 Node16.log.2018-04-09.149.gz
      -rw-r--r-- 1 indy indy 10742575 Apr 12 21:25 Node16.log.2018-04-09.150.gz
      -rw-r--r-- 1 indy indy 26056820 Apr 12 22:08 Node16.log.2018-04-09.151.gz
      -rw-r--r-- 1 indy indy 26056722 Apr 12 23:32 Node16.log.2018-04-09.152.gz
      -rw-r--r-- 1 indy indy 26056688 Apr 13 00:14 Node16.log.2018-04-09.153.gz
      -rw-r--r-- 1 indy indy 26056698 Apr 13 00:56 Node16.log.2018-04-09.154.gz
      -rw-r--r-- 1 indy indy 26056706 Apr 13 01:39 Node16.log.2018-04-09.155.gz
      -rw-r--r-- 1 indy indy 26056444 Apr 13 02:21 Node16.log.2018-04-09.156.gz
      -rw-r--r-- 1 indy indy 26056652 Apr 13 03:03 Node16.log.2018-04-09.157.gz
      -rw-r--r-- 1 indy indy 26056784 Apr 13 03:45 Node16.log.2018-04-09.158.gz
      -rw-r--r-- 1 indy indy 26056665 Apr 13 04:27 Node16.log.2018-04-09.159.gz
      -rw-r--r-- 1 indy indy 26056440 Apr 13 05:10 Node16.log.2018-04-09.160.gz
      -rw-r--r-- 1 indy indy 26056495 Apr 13 05:52 Node16.log.2018-04-09.161.gz
      -rw-r--r-- 1 indy indy 26056635 Apr 13 06:34 Node16.log.2018-04-09.162.gz
      -rw-r--r-- 1 indy indy 26056509 Apr 13 07:16 Node16.log.2018-04-09.163.gz
      -rw-r--r-- 1 indy indy 26056722 Apr 13 07:58 Node16.log.2018-04-09.164.gz
      -rw-r--r-- 1 indy indy 19567068 Apr 13 08:25 Node16.log.2018-04-09.165.gz
      -rw-r--r-- 1 indy indy 10342134 Apr 13 08:33 Node16.log.2018-04-09.166.gz
      -rw-r--r-- 1 indy indy 9824652 Apr 13 08:41 Node16.log.2018-04-09.167.gz
      -rw-r--r-- 1 indy indy 11647462 Apr 13 08:49 Node16.log.2018-04-09.168.gz
      -rw-r--r-- 1 indy indy 11298062 Apr 13 08:58 Node16.log.2018-04-09.169.gz
      -rw-r--r-- 1 indy indy 12206075 Apr 13 09:08 Node16.log.2018-04-09.170.gz
      -rw-r--r-- 1 indy indy 26014954 Apr 13 09:46 Node16.log.2018-04-09.171.gz
      -rw-r--r-- 1 indy indy 26014942 Apr 13 10:24 Node16.log.2018-04-09.172.gz
      -rw-r--r-- 1 indy indy 26014876 Apr 13 11:03 Node16.log.2018-04-09.173.gz
      -rw-r--r-- 1 indy indy 26016869 Apr 13 11:41 Node16.log.2018-04-09.174.gz
      -rw-r--r-- 1 indy indy 26007194 Apr 13 12:19 Node16.log.2018-04-09.175.gz
      -rw-r--r-- 1 indy indy 26007242 Apr 13 12:57 Node16.log.2018-04-09.176.gz
      -rw-r--r-- 1 indy indy 26007162 Apr 13 13:35 Node16.log.2018-04-09.177.gz
      -rw-r--r-- 1 indy indy 26007168 Apr 13 14:14 Node16.log.2018-04-09.178.gz
      -rw-r--r-- 1 indy indy 26007113 Apr 13 14:52 Node16.log.2018-04-09.179.gz
      -rw-r--r-- 1 indy indy 26006671 Apr 13 15:30 Node16.log.2018-04-09.180.gz
      -rw-r--r-- 1 indy indy 26004741 Apr 13 16:08 Node16.log.2018-04-09.181.gz
      -rw-r--r-- 1 indy indy 26004722 Apr 13 16:46 Node16.log.2018-04-09.182.gz
      -rw-r--r-- 1 indy indy 26004615 Apr 13 17:25 Node16.log.2018-04-09.183.gz
      -rw-r--r-- 1 indy indy 13008079 Apr 13 18:20 Node16.log.2018-04-09.184.gz
      -rw-r--r-- 1 indy indy 2877044 Apr 16 00:00 Node16.log.2018-04-09.185.gz
      -rw-r--r-- 1 indy indy 26056438 Apr 12 22:50 Node16.log.2018-04-09.gz
      -rw-r--r-- 1 indy indy 5136836 Apr 16 09:08 Node16.log.2018-04-16.1.gz
      -rw-r--r-- 1 indy indy 5443714 Apr 16 09:03 Node16.log.2018-04-16.gz

      Actual Results:
      1. The same date (Monday of this week) is specified in log name during the week.
      2. It's unclear when the file NodeX.log.2018-04-09.gz (without numeric index) was created. Looks like it is created daily, but on some nodes was rewritten:

      ubuntu@virginaQALarge24:~$ ll /var/log/indy/sandbox/*2018-04-09.gz
      -rw-r--r-- 1 indy indy 26089700 Apr 13 01:57 /var/log/indy/sandbox/Node24.log.2018-04-09.gz
      ubuntu@sydneyQALarge20:~$ ll /var/log/indy/sandbox/*2018-04-09.gz
      -rw-r--r-- 1 indy indy 496172 Apr 16 00:00 /var/log/indy/sandbox/Node20.log.2018-04-09.gz
      ubuntu@tokyoQALarge18:~$ ll /var/log/indy/sandbox/*2018-04-09.gz
      -rw-r--r-- 1 indy indy 3440278 Apr 16 00:00 /var/log/indy/sandbox/Node18.log.2018-04-09.gz
      

       

      Expected Results:
      Dates in logs names should accord to the date when the log was rotated,
      or
      Dates should not be specified at all.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              ozheregelya Olga Zheregelya
              Watchers:
              Olga Zheregelya, Richard Esplin, Sergey Khoroshavin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: