Splunk Search

How to Extract fields with alphanumeric values?

inkedia
Explorer

 

 

 

 



I have to extract the highlighted value as a single field in splunk. Any help.

Labels (1)
0 Karma
1 Solution

venky1544
Builder

hi @inkedia 

try the below search 

your search  |rex field=_raw max_match=0 "(?<taskid>TASK\d+)"|table taskid

 

venky1544_0-1649864008740.png

if this help karma points are  appreciated /accept the solution it might help others 

View solution in original post

inkedia
Explorer

supper helpful... thanks

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Nothing is highlighted.  Please specify what you are trying to extract, how you've tried to extract it, and how those attempts failed to meet expectations.

---
If this reply helps you, Karma would be appreciated.
0 Karma

inkedia
Explorer

Sorry but my I wanted info as to how to extract the values starting with TASK...... they are the bolded stuff

0 Karma

venky1544
Builder

hi @inkedia 

try the below search 

your search  |rex field=_raw max_match=0 "(?<taskid>TASK\d+)"|table taskid

 

venky1544_0-1649864008740.png

if this help karma points are  appreciated /accept the solution it might help others 

Get Updates on the Splunk Community!

Splunk ITSI & Correlated Network Visibility

  Now On Demand   Take Your Network Visibility to the Next Level In today’s complex IT environments, ...

Leveraging Detections from the Splunk Threat Research Team & Cisco Talos

  Now On Demand  Stay ahead of today’s evolving threats with the combined power of the Splunk Threat Research ...

New in Splunk Observability Cloud: Automated Archiving for Unused Metrics

Automated Archival is a new capability within Metrics Management; which is a robust usage & cost optimization ...