Ad Widget

Collapse

Zabbix logging file from server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Denis.Barbu
    Junior Member
    • Feb 2023
    • 7

    #1

    Zabbix logging file from server

    Hello,
    May someone help me to understand what i`m doing wrong.

    I created an item in Zabbix with key : logrt[C:\xx\xx\xx\file.log,DirScanner processing,\1]
    where i`ve indicate where is file, text that i what to find "DirScanner processing" and as i understant \1 for get latest data.

    Item is working but
    Problem is that i get some wrong date or better to say latest data.

    Click image for larger version

Name:	image.png
Views:	126
Size:	51.1 KB
ID:	459046

    Timed as 12:05 but output is from 9:56

    P.S. log file is changing every few seconds.​
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    I recommend reading the full description of the parameters of the key "logrt" \ "log" and the features of its operation.
    https://www.zabbix.com/documentation...agent#log-data
    The above expression is incorrect - third parameter is encoding.

    And describe in more detail what you want to achieve? What metric are you collecting?​

    A lot of useful information about monitoring logs can be found here: https://www.zabbix.com/documentation...ypes/log_items

    PS
    Check the time synchronization.
    Last edited by Hamardaban; 07-02-2023, 12:45.

    Comment

    • Denis.Barbu
      Junior Member
      • Feb 2023
      • 7

      #3
      Originally posted by Hamardaban
      I recommend reading the full description of the parameters of the key "logrt" \ "log" and the features of its operation.
      https://www.zabbix.com/documentation...agent#log-data
      The above expression is incorrect - third parameter is encoding.

      And describe in more detail what you want to achieve? What metric are you collecting?​

      A lot of useful information about monitoring logs can be found here: https://www.zabbix.com/documentation...ypes/log_items

      PS
      Check the time synchronization.
      i want to collect "Text" for example like in post "DisScanner" just last value.. data that i get now, it`s fine, biggest problem is time

      its importent to collect info in real-time
      Last edited by Denis.Barbu; 07-02-2023, 13:05.

      Comment

      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #4
        The active Zabbix agent uses a complex algorithm for processing data and sending it to the server.
        You can read it in the links that I gave.
        The process is not realtime!
        You can get closer by setting update interval=1s and selecting the agent settings.

        Comment

        Working...