°Ô½Ã¹° 1,369°Ç
   
Log timestamp
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2018-02-09 (±Ý) 14:42 Á¶È¸ : 23620
±ÛÁÖ¼Ò :
                                
log timestamp format  

·Î±×³» timestamp ±âº»Æ÷¸Ë 
# tail -f /var/log/nagios/nagios.log 
[1518154187] Warning: Return code of 255 for check of service 'Check Disk' on host 'hl-218-245' was out of bounds.
[1518154273] Warning: Return code of 255 for check of service 'Check memory' on host 'hl-218-245' was out of bounds.
[1518154304] Warning: Return code of 255 for check of service 'Check Load' on host 'hl-218-245' was out of bounds.
[1518154304] Warning: Return code of 255 for check of service 'Check Disk' on host 'hl-218-245' was out of bounds.
[1518154393] Warning: Return code of 255 for check of service 'Check memory' on host 'hl-218-245' was out of bounds.
[1518154424] Warning: Return code of 255 for check of service 'Check Load' on host 'hl-218-245' was out of bounds.
[1518154427] Warning: Return code of 255 for check of service 'Check Disk' on host 'hl-218-245' was out of bounds.
[1518154513] Warning: Return code of 255 for check of service 'Check memory' on host 'hl-218-245' was out of bounds.
[1518154544] Warning: Return code of 255 for check of service 'Check Load' on host 'hl-218-245' was out of bounds.
[1518154547] Warning: Return code of 255 for check of service 'Check Disk' on host 'hl-218-245' was out of bounds.


# tail -f /var/log/nagios/nagios.log | awk '{now=strftime("%F %T%z\t");sub(/^/, now);print}'
2018-02-09 14:38:15+0900 [1518154304] Warning: Return code of 255 for check of service 'Check Disk' on host 'hl-218-245' was out of bounds.
2018-02-09 14:38:15+0900 [1518154393] Warning: Return code of 255 for check of service 'Check memory' on host 'hl-218-245' was out of bounds.
2018-02-09 14:38:15+0900 [1518154424] Warning: Return code of 255 for check of service 'Check Load' on host 'hl-218-245' was out of bounds.
2018-02-09 14:38:15+0900 [1518154427] Warning: Return code of 255 for check of service 'Check Disk' on host 'hl-218-245' was out of bounds.
2018-02-09 14:38:15+0900 [1518154513] Warning: Return code of 255 for check of service 'Check memory' on host 'hl-218-245' was out of bounds.
2018-02-09 14:38:15+0900 [1518154544] Warning: Return code of 255 for check of service 'Check Load' on host 'hl-218-245' was out of bounds.
2018-02-09 14:38:15+0900 [1518154547] Warning: Return code of 255 for check of service 'Check Disk' on host 'hl-218-245' was out of bounds.
2018-02-09 14:38:15+0900 [1518154633] Warning: Return code of 255 for check of service 'Check memory' on host 'hl-218-245' was out of bounds.
2018-02-09 14:38:15+0900 [1518154664] Warning: Return code of 255 for check of service 'Check Load' on host 'hl-218-245' was out of bounds.
2018-02-09 14:38:15+0900 [1518154667] Warning: Return code of 255 for check of service 'Check Disk' on host 'hl-218-245' was out of bounds.


# tail -f /var/log/nagios/nagios.log | while read line; do printf "$(date -u '+%F %T%z')\t$line\n"; done
2018-02-09 05:38:36+0000 [1518154304] Warning: Return code of 255 for check of service 'Check Disk' on host 'hl-218-245' was out of bounds.
2018-02-09 05:38:36+0000 [1518154393] Warning: Return code of 255 for check of service 'Check memory' on host 'hl-218-245' was out of bounds.
2018-02-09 05:38:36+0000 [1518154424] Warning: Return code of 255 for check of service 'Check Load' on host 'hl-218-245' was out of bounds.
2018-02-09 05:38:36+0000 [1518154427] Warning: Return code of 255 for check of service 'Check Disk' on host 'hl-218-245' was out of bounds.
2018-02-09 05:38:36+0000 [1518154513] Warning: Return code of 255 for check of service 'Check memory' on host 'hl-218-245' was out of bounds.
2018-02-09 05:38:36+0000 [1518154544] Warning: Return code of 255 for check of service 'Check Load' on host 'hl-218-245' was out of bounds.
2018-02-09 05:38:36+0000 [1518154547] Warning: Return code of 255 for check of service 'Check Disk' on host 'hl-218-245' was out of bounds.
2018-02-09 05:38:36+0000 [1518154633] Warning: Return code of 255 for check of service 'Check memory' on host 'hl-218-245' was out of bounds.
2018-02-09 05:38:36+0000 [1518154664] Warning: Return code of 255 for check of service 'Check Load' on host 'hl-218-245' was out of bounds.
2018-02-09 05:38:36+0000 [1518154667] Warning: Return code of 255 for check of service 'Check Disk' on host 'hl-218-245' was out of bounds.


# tail -f /var/log/nagios/nagios.log | xargs -IX printf "$(date)\t%s\n" X
2018. 02. 09. (±Ý) 14:39:44 KST [1518154393] Warning: Return code of 255 for check of service Check memory on host hl-218-245 was out of bounds.
2018. 02. 09. (±Ý) 14:39:44 KST [1518154424] Warning: Return code of 255 for check of service Check Load on host hl-218-245 was out of bounds.
2018. 02. 09. (±Ý) 14:39:44 KST [1518154427] Warning: Return code of 255 for check of service Check Disk on host hl-218-245 was out of bounds.
2018. 02. 09. (±Ý) 14:39:44 KST [1518154513] Warning: Return code of 255 for check of service Check memory on host hl-218-245 was out of bounds.
2018. 02. 09. (±Ý) 14:39:44 KST [1518154544] Warning: Return code of 255 for check of service Check Load on host hl-218-245 was out of bounds.
2018. 02. 09. (±Ý) 14:39:44 KST [1518154547] Warning: Return code of 255 for check of service Check Disk on host hl-218-245 was out of bounds.
2018. 02. 09. (±Ý) 14:39:44 KST [1518154633] Warning: Return code of 255 for check of service Check memory on host hl-218-245 was out of bounds.
2018. 02. 09. (±Ý) 14:39:44 KST [1518154664] Warning: Return code of 255 for check of service Check Load on host hl-218-245 was out of bounds.
2018. 02. 09. (±Ý) 14:39:44 KST [1518154667] Warning: Return code of 255 for check of service Check Disk on host hl-218-245 was out of bounds.
2018. 02. 09. (±Ý) 14:39:44 KST [1518154753] Warning: Return code of 255 for check of service Check memory on host hl-218-245 was out of bounds.
2018. 02. 09. (±Ý) 14:39:44 KST [1518154784] Warning: Return code of 255 for check of service Check Load on host hl-218-245 was out of bounds.
2018. 02. 09. (±Ý) 14:39:44 KST [1518154784] Warning: Return code of 255 for check of service Check Disk on host hl-218-245 was out of bounds.


# tail -f /var/log/nagios/nagios.log | while read line; do echo -n $(date -Ins); echo -e "\t$line"; done
2018-02-09T14:39:58,467224358+0900 [1518154427] Warning: Return code of 255 for check of service 'Check Disk' on host 'hl-218-245' was out of bounds.
2018-02-09T14:39:58,470209717+0900 [1518154513] Warning: Return code of 255 for check of service 'Check memory' on host 'hl-218-245' was out of bounds.
2018-02-09T14:39:58,473144158+0900 [1518154544] Warning: Return code of 255 for check of service 'Check Load' on host 'hl-218-245' was out of bounds.
2018-02-09T14:39:58,475700316+0900 [1518154547] Warning: Return code of 255 for check of service 'Check Disk' on host 'hl-218-245' was out of bounds.
2018-02-09T14:39:58,478095886+0900 [1518154633] Warning: Return code of 255 for check of service 'Check memory' on host 'hl-218-245' was out of bounds.
2018-02-09T14:39:58,480517214+0900 [1518154664] Warning: Return code of 255 for check of service 'Check Load' on host 'hl-218-245' was out of bounds.
2018-02-09T14:39:58,482950210+0900 [1518154667] Warning: Return code of 255 for check of service 'Check Disk' on host 'hl-218-245' was out of bounds.
2018-02-09T14:39:58,485478677+0900 [1518154753] Warning: Return code of 255 for check of service 'Check memory' on host 'hl-218-245' was out of bounds.
2018-02-09T14:39:58,488370442+0900 [1518154784] Warning: Return code of 255 for check of service 'Check Load' on host 'hl-218-245' was out of bounds.
2018-02-09T14:39:58,491342978+0900 [1518154784] Warning: Return code of 255 for check of service 'Check Disk' on host 'hl-218-245' was out of bounds.


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.