Ad Widget

Collapse

log time format not long enough

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • c2cannova
    Junior Member
    • May 2016
    • 2

    #1

    log time format not long enough

    Hi,

    Log time format is 64 char long and I have a log that has 75 char long to grab the time stamp. Is there any way to get around this?

    Example:
    I add ā€˜p’ for each char that is not date & time for Zabbix time format
    | [PollableSourceRunner-JMSSource-tibSrc3] | [ ] | 2017-04-27 14:21:22
    pppppppppppppppppppppppppppppppppppppppppppppppppp ppppppyyyypMMpddphh:mm:ss

    This is what fits: 64 char total, above 75 char
    pppppppppppppppppppppppppppppppppppppppppppppppppp ppppppyyyypMMp

    Greatly appreciate any support given.
  • ovas
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Apr 2017
    • 138

    #2
    Hello c2cannova!

    This setting is hardcoded in two places:
    1) Zabbix web interface: <zabbix frontend>/include/views/configuration.item.edit.php, line 363, change 64 value to whatever you need.
    2) Zabbix database: items table, logtimefmt column, change varchar(64) to varchar(whatever you need).
    Try changing this for a start, though I can't predict it will not break anything else. And pay attention that updates will most probably overwrite these settings.

    Comment

    • c2cannova
      Junior Member
      • May 2016
      • 2

      #3
      Thank you for your reply and support.

      Comment

      Working...