728x90
Zabbix 로그 파일 시간 형식(Log time format)
zabbix agent 로그
tail -f /var/log/zabbix/zabbix_agentd.log
$ tail -f /var/log/zabbix/zabbix_agentd.log | grep agent.ping
14938:20210624:114055.396 Requested [agent.ping]
14937:20210624:114155.373 Requested [agent.ping]
14939:20210624:114255.787 Requested [agent.ping]
14938:20210624:114355.987 Requested [agent.ping]
14939:20210624:114455.011 Requested [agent.ping]
14937:20210624:114555.547 Requested [agent.ping]
14937:20210624:114655.922 Requested [agent.ping]
PPPPPP:YYYYMMDD:HHMMSS.mmm
PPPPPP : 프로세스 ID(6자로 공백이 채워졌음)
YYYYMMDD : 현재 날짜
HHMMSS : 현재 시간
mmm : 밀리 초
Log time format | In this field you may optionally specify the pattern for parsing the log line timestamp. If left blank the timestamp will not be parsed. Supported placeholders: * y: Year (0001-9999) * M: Month (01-12) * d: Day (01-31) * h: Hour (00-23) * m: Minute (00-59) * s: Second (00-59) For example, consider the following line from the Zabbix agent log file: “ 23480:20100328:154718.045 Zabbix agent started. Zabbix 1.8.2 (revision 11211).” It begins with six character positions for PID, followed by date, time, and the rest of the line. Log time format for this line would be “pppppp:yyyyMMdd:hhmmss”. Note that “p” and “:” chars are just placeholders and can be anything but “yMdhms”. |
https://www.zabbix.com/documentation/5.0/manual/config/items/itemtypes/log_items
728x90
'기타' 카테고리의 다른 글
[리눅스] 리눅스 password hashing 알고리즘 변경하기 (0) | 2021.06.28 |
---|---|
[LDAP] OpenLDAP cert(TLS/SSL) 적용 시 에러 (0) | 2021.06.28 |
[리눅스] OpenSSL 최신 버전으로 업그레이드(설치) (0) | 2021.06.17 |
[메일] 메일 SMTP 오류 코드 정리 (0) | 2021.06.17 |
[리눅스] chrony 설치 및 설정(ntpd 대체) (0) | 2021.06.17 |