I found what I need.  The 'NOT' operator.

On Wednesday, February 20, 2019 at 3:31:32 PM UTC-8, Cheryl Huntington 
wrote:
>
>
> Hello,
>
> I am configuring Jenkins to use the Splunk plugin. 
> https://wiki.jenkins.io/display/JENKINS/Splunk+plugin+for+Jenkins.
> I have the connection and logs being sent and now I want to restrict which 
> jobs send logs to splunk.
> There is a configuration setting to specify which jobs to not send logs 
> from.  I want to send logs only from some specific QA jobs. I can't figure 
> out how to set the regex to say 'don't send from any jobs except the jobs 
> with "ProdQA" in them'.  Can anyone help?
>
> Here is the help in the Jenkins plugin configuration
>
>
> Check Regular Expression to select which jobs will be ignored for 
> monitoring. Job names matches the pattern will be ignored, for example:
> (?:backgroundJobName|adhocJobName|tempJobName)
>
> will match backgroundJobName, backgroundJobNameBlah, blahbackgroundJobName
> ^(?:backgroundJobName|adhocJobName|tempJobName)$
>
> will match backgroundJobName but neither backgroundJobNameBlah nor 
> blahbackgroundJobName
>
> (?:X)   X, as a non-capturing group
> ^   The beginning of a line
> $   The end of a line
> X|Y     Either X or Y
> \w  A word character: [a-zA-Z_0-9]
>
> Thanks!
>   Cheryl
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/477a38b6-5df0-4ac2-8276-dd98ee2d4300%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to