* AWS EC2 타임존 변경 ( 별도 프로세스 재기동 없이 바로 적용하기 )
[ec2-user@ip-172-31-13-134]$ sudo cp -p /usr/share/zoneinfo/Asia/Seoul /etc/localtime
* 유닉스 타임을 Date 타임으로 출력하기
[ec2-user@ip-172-31-13-134]$ sudo cat /var/log/squid/access.log | perl -p -e 's/^([0-9]*)/"[".localtime($1)."]"/e'
[ec2-user@ip-172-31-13-134 squid]$ sudo tail -f /var/log/squid/access.log | perl -p -e 's/^([0-9]*)/"[".localtime($1)."]"/e'
[Fri Nov 29 12:34:40 2024].802 494 211.32.198.11 TCP_TUNNEL/200 4251 CONNECT client.wns.windows.com:443 - HIER_DIRECT/20.198.119.143 -
[Fri Nov 29 12:38:42 2024].148 59767 211.32.198.50 TCP_TUNNEL/200 30470 CONNECT www.ecar.go.kr:443 - HIER_DIRECT/211.236.84.165 -
[Fri Nov 29 12:41:09 2024].791 506 211.32.198.50 TCP_TUNNEL/200 4251 CONNECT client.wns.windows.com:443 - HIER_DIRECT/20.198.119.143 -
[Fri Nov 29 12:41:15 2024].408 509 211.32.198.11 TCP_TUNNEL/200 4251 CONNECT client.wns.windows.com:443 - HIER_DIRECT/20.198.119.143 -
[Fri Nov 29 12:41:15 2024].420 521 211.32.198.11 TCP_TUNNEL/200 4251 CONNECT client.wns.windows.com:443 - HIER_DIRECT/20.198.119.143 -
'Tech > Public Cloud & 오픈소스' 카테고리의 다른 글
MSA (MicroService Architecture) (0) | 2024.12.18 |
---|---|
Docker 구성하기 (0) | 2024.05.31 |
AWS Data Transfer Costs (0) | 2023.09.06 |
ELK(ElasticSearch, Logstash, Kibana) ELK Stack (0) | 2022.08.08 |
클라우드 보안 가이드 (0) | 2020.12.02 |