분류 전체보기(980)
-
ubuntu sed replace에서 변수 적용하기
# build.shtag=0.0003sed 's/{tag}/${tag}/g;' ../k8s/kafka-producer.yml > ./deploy/kafka-producer-$tag.yml# kafka-producer.ymlimage:{tag}# kafka-producer-$tag.yml 결과image:${tag} '는 변수가 작동안하: "를 사용해야 함# build.shtag=0.0003sed "s/{tag}/${tag}/g;" ../k8s/kafka-producer.yml > ./deploy/kafka-producer-$tag.yml# kafka-producer.ymlimage:{tag}# kafka-producer-$tag.yml 결과image:0.0003
2025.04.05 -
td-agent 디버깅
/etc/td-agent/td-agent.conf log_level debug로그 확인# 재기동sudo systemctl restart td-agent# 로그확인tail -f /var/log/td-agent/td-agent.log
2025.04.05 -
ubuntu 관리자 파일 읽는 권한 부여
sudo usermod -a -G adm td-agent# 확인groups td-agent
2025.04.05 -
Ubunbu syslog에 로그 찍기
logger "🔥 TEST LOG FROM SYSLOG $(date)"# 확인tail -f /var/log/syslog
2025.04.05 -
ubuntu에 td-agent 설치
설치curl -fsSL https://packages.treasuredata.com/GPG-KEY-td-agent | sudo apt-key add -echo "deb https://packages.treasuredata.com/4/ubuntu/focal/ focal contrib" | sudo tee /etc/apt/sources.list.d/td-agent.listsudo apt updatesudo apt install td-agent오류# 오류The following packages have unmet dependencies: td-agent : Depends: libssl1.1 (>= 1.1.1) but it is not installableE: Unable to correct problems, ..
2025.04.05 -
Ubuntu 먹통될때 조치
NTP: DNS Resolution Failing 에러ntpd[1259]: error resolving pool x.ubuntu.pool.ntp.org: Temporary failure in name resolution조치# DNS 셋팅sudo vi /etc/resolv.conf------------------------------------------nameserver {dns IP}sudo systemctl restart systemd-resolvedsudo systemctl status systemd-resolved# NTP 확인ntpq -p
2025.04.02