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
'리눅스' 카테고리의 다른 글
[리눅스] PHP redis 확장(Extension)을 설치하는 방법 (0) | 2021.07.23 |
---|---|
[리눅스] OpenLDAP cert(TLS/SSL) 적용 시 에러 (0) | 2021.06.28 |
[리눅스] 자체 서명된 SSL 인증서 만들기(openssl) (0) | 2021.06.22 |
[리눅스] 메일 SMTP 오류 코드 정리 (0) | 2021.06.17 |
[리눅스] OpenLDAP 설치 및 구성 (0) | 2021.06.11 |