Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-13253

Log file monitoring starts from byte 0, the first log line can not be read with skip mode

    Details

    • Team:
      Team A
    • Sprint:
      Sprint 23, Sprint 24
    • Story Points:
      1

      Description

      Steps to reproduce:
      1. Create a 0 byte log file

      # touch tester.log; chmod 777 tester.log;
      # ls -l
      -rwxrwxrwx   1 root   root        0 Dec 25 03:05 tester.log
      

      2. Create a item

      Key :log[/var/log/tester.log,,,,skip]	
      Update interval (in sec) : 1s
      

      3. Add echo "1" and "2".

      # echo "1" >> tester.log
      -rwxrwxrwx  1 root   root        2 Dec 25 03:35 tester.log
      
      # echo "2" >> tester.log
      -rwxrwxrwx  1 root   root        4 Dec 25 03:40 tester.log
      

      First "1" log was skipped, Only the second "2" data is read.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andris Andris Mednis
                Reporter:
                JKKim Kim Jongkwon
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: