All Apps and Add-ons

Split servername and display in another column

priya0709
Path Finder

How to use Regex query to separate servername which has different names eg:- 

WSINI601XASI01

WRDNA502XUSA05

WGBR601XGBR11

from below subject lines:—

1.  INC000027679570 | WSINI601XASI01| scom exchange 2k16: Failed to connect to computer

2.  Wo# 1197736/ INC00027697776/ please perform hardware diagnostic on WRDNA502XUSA05

Labels (1)
0 Karma
1 Solution

to4kawa
Ultra Champion

| rex max_match=0 "(?<servername>[A-Z]{5}\d{3}[A-Z]{4}\d\d)"

View solution in original post

0 Karma

thambisetty
SplunkTrust
SplunkTrust

| rex "(?<computer>W[A-Z0-9\d]+)"

————————————
If this helps, give a like below.
0 Karma

to4kawa
Ultra Champion

| rex max_match=0 "(?<servername>[A-Z]{5}\d{3}[A-Z]{4}\d\d)"

0 Karma

priya0709
Path Finder

Thank you

0 Karma
Get Updates on the Splunk Community!

Accelerate Service Onboarding, Decomposition, Troubleshooting - and more with ITSI’s ...

Accelerate Service Onboarding, Decomposition, Troubleshooting - and more! Faster Time to ValueManaging and ...

New Release | Splunk Enterprise 9.3

Hi Splunky people! We are excited to share the newest updates in Splunk Enterprise 9.3!Admins and Analyst can ...

2024 Splunk Career Impact Survey | Earn a $20 gift card for participating!

Hear ye, hear ye! The time has come again for Splunk's annual Career Impact Survey!  We need your help by ...