Splunk Search

Double value in field

keyu921
Explorer

I am searching windows event log.

Aftre result search complete, Account_Domain contains following value

"-
ABC"

How can I left ABC inside??

| rex field="Account_Domain" mode=sed "s/([0-9]{4}) /\1,,/" not working

0 Karma
1 Solution

vnravikumar
Champion

Hi

Check this

| rex field=Account_Domain max_match=0 "(?P<Account_Domain>\w+)"

View solution in original post

0 Karma

vnravikumar
Champion

Hi

Check this

| rex field=Account_Domain max_match=0 "(?P<Account_Domain>\w+)"
0 Karma

keyu921
Explorer
Become like this

Account_Domain

ALPHA

ALPHA

0 Karma

vnravikumar
Champion

Can you provide some sample data with the expected output?

0 Karma
Get Updates on the Splunk Community!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...