Ad Widget

Collapse

How to use Local Time from logs?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • matt_nov
    Junior Member
    • May 2020
    • 1

    #1

    How to use Local Time from logs?

    Hello,

    I got a problem with using 'Log time format'. After filling with the correct pattern, timestamp goes to the Local Time column. How I can use it as the primary timestamp for dependent items?

    This is my current situation:
    2020-05-04 11:48:15 2020-04-15 09:44:47 [INFO ] 2020-04-15 09:44:47,741 de.rwth.i
    My expectation:
    I will be able to use Local time as my X-axis on graphs for the dependent items.

    Is there any solution?
    Thanks
  • mgoulin
    Junior Member
    • Dec 2020
    • 1

    #2
    Hello,

    I have the same situation. But dépendent item is calculated after source data recuperation. So i think it's not possible to get localtime on X-axis.
    The solution can be to use zabbix_sender to send data with fixed-time.

    Best !

    Comment

    • quixote
      Junior Member
      • Feb 2025
      • 1

      #3
      any solution for this case ? I just started to use this log monitoring, and I do have same problema. In the image below, the graph is using time stamps (1) and I need to log-file local-time (2)

      Click image for larger version

Name:	image.png
Views:	126
Size:	156.8 KB
ID:	499757

      Comment

      • Brambo
        Senior Member
        • Jul 2023
        • 245

        #4
        If the length before the datetime value is static. Use logtime format: ppppppyyyy-MM-ddphh:mm:ss
        p= any character, - & : are accepted as separators (check manual for log / logrt items)

        Comment

        Working...