Simple coreDNS timestamp log

Jbn1233
Mar 16, 2021

yes I need it for some reasons…

# coredns -conf config  | while read line; do printf "$(date +"%Y%m%d-%H%M%S%3N" )\t$line\n"; done 

put it in one-line and run.

done.

Update1: this one was too complex ,just use journal log instead

--

--

Jbn1233

Very short and simple notes for CKA/SRE and may not works on your environment | jbn1233@gmail.com | Bangkok, Thailand |