Splunk Enterprise

Correct REGEX to capture hostname

becksyboy
Communicator

Hi,

I’m having trouble formulating the correct regex to capture a hostname. Im only interested in the following

divvo
divvo1
divvo2

I don’t want to capture:

divvoabcdef
divvo1abcdef
abcdefdvvo
abcdefdvvo1.

Is there a good REGEX to capture this?

Tags (1)
0 Karma
1 Solution

micahkemp
Champion
0 Karma

becksyboy
Communicator

Thanks will give this a try

0 Karma

micahkemp
Champion
^divvo\d*$
0 Karma

micahkemp
Champion

Is the pattern defined by the literal term divvo?

0 Karma

becksyboy
Communicator

Hi, yes it is

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...