Does rsyslog support case statement similar to C?
switch ($programname)
{
case "nginx":
// code to be executed if n is equal to constant2;
break;
case "java":
// code to be executed if n is equal to constant2;
break;
...
default:
// code to be executed if n doesn't match any constant
break;
}
I know that same effect can be achieved by if..else if..else statement.