Awk has a function called 'tolower':
cat $logfile | awk '
tolower($0) ~ /install/ {print "\033[32m" $0 "\033[39m"; next;}
tolower($0) ~ /success/ {print "\033[32m" $0 "\033[39m"; next;}
tolower($0) ~ /status/ {print "\033[33m" $0 "\033[39m"; next;}
tolower($0) ~ /info/ {print "\033[33m" $0 "\033[39m"; next;}
tolower($0) ~ /error/ {print "\033[31m" $0 "\033[39m"; next;}
tolower($0) ~ /fail/ {print "\033[31m" $0 "\033[39m"; next;}
{ print; }
'
With Bash uses, you can use shopt -s nocasematch for case insensitive pattern matching. eg.
mystring="AbCdEfG"
shopt -s nocasematch
if [[ ${mystring} == abcdefg ]] ; then
echo "is a match!!"
fi