Ad Widget

Collapse

Create Graphic from Log

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stephangoeldi
    Junior Member
    • Nov 2020
    • 4

    #1

    Create Graphic from Log

    I have a log with timing information:

    Code:
    2021-01-15 07:43:01,404 0.008148431777954102
    2021-01-15 07:44:01,552 0.008039712905883789
    2021-01-15 07:45:01,706 0.00850367546081543
    So this is the date, time and timeout in seconds.

    I'd like to have graphics in Zabbix with the timeout seconds on Y and the time on X.
    Creating a log item was possible, but graphics do not seem to be possible with log items.
    What are the steps needed, to get the graphics?

    Thank you in advance!
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    Item type “logl is stored in the database as text - you can't build a graph based on it. so you need to select a “number” from the incoming data and save it in the database.

    Make an item with the “log " key (with group search and output)and the Numeric (float) info type..
    log[file,<regexp>,<encoding>,<maxlines>,<mode>,<output>,<maxdelay>,<options>] https://www.zabbix.com/documentation...s/zabbix_agent


    or make a dependent element from yours and In the preprocessing regex search the number you need.
    https://www.zabbix.com/documentation...ependent_items
    https://www.zabbix.com/documentation.../preprocessing / Regular expression
    Last edited by Hamardaban; 15-01-2021, 15:41.

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      How is the log created? Maybe instead of (or additionally to log writing) it would be reasonable to send same timeout numbers to Zabbix with zabbix_sender?

      Comment

      Working...