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!

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...