how do you pick the exact mach

Asked by mike

I have servers in my system that include something like this:

dcwebsrv001, dcwebsrv002,dcwebsrv003,dcwebsrv0011,dcwebsrv0012,dcwebsrv0014 etc

I need to create a query to only extract dcwebsrv001 and dcwebsrv002

when I do this

{dcwebsrv001,dcwebsrv002} in my query, I get all the servers that have 001 and 002 in them like dcwebsrv0012,dcwebsrv0014

is it possible to only retrieve certain servers in graphite and how?

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jason Dixon (jason-dixongroup) said :
#1

I forget if the regex supports this, but have you tried using the $ anchor at the end of each string?

Jason

Can you help with this problem?

Provide an answer of your own, or ask mike for more information if necessary.

To post a message you must log in.