I found a similar post about this topic, but in that case the solution was to escape the periods in the server name. My problem is slightly different in that my server names don’t have any periods.
I have two servers:
abc-servername
DEF12-ServerName
When I use this search it returns results:
source:/.*(servername|ServerName)/
However, when I put either /.(servername|ServerName)/ or .(servername|ServerName) into the stream rule it does not process any messages. What am I doing wrong with my syntax.
Thank you in advance for any help that you can provide.
I’m not really sure what to post. I’ve set the stream up to match this rule.
source: must match regular expression .*(servername|ServerName)
I don’t currently have the “-” in the regex statement at all. I figured it would get included with .* as any character. I will try putting it in there escaped.