I am using CentOS6.5 that include rsyslogd v5.8.10There are 20 process program in my server.I want to receive logs use rsyslogd and hope to store in different log file according identity of process program in message, so I decide send logs like following format:{PRC }example: {PRC server1_process_a10}this_is_message_textI want to know how to check whether message is match filter/rule(use Regex?), then use the process_name,log_level in the log file name?For example:the log message is(log level is debug):{PRC server1_process_a10}this_is_message_textwe want this message store to /var/log/myprogram-server1_process_a10_debug.log
How can I use part of match in Regex to generate filename of action?
regular expression;rsyslog