domain="domain_placeholder"
keyword="keyword_placeholder"
if [[ -f /usr/local/apache/logs/error_log ]]; then
    if [[ ! $keyword ]]; then
        tail -f /usr/local/apache/logs/error_log
    else 
        tail -f /usr/local/apache/logs/error_log |grep -i "$keyword"
    fi
else
    if [[ ! $keyword ]]; then
        tail -f /var/www/vhosts/$domain/statistics/logs/error_log
    else
        tail -f /var/www/vhosts/$domain/statistics/logs/error_log | grep -i "$keyword"
    fi
fi
        
