Splunk Search

How to add the regex in datamodel and use in tstats?

payal23
Path Finder

Want to add the below logic in the datamodel and use with tstats

| eval _raw=replace(_raw,"\","null") |rex "NetworkSetting>International\sRoaming\sBar(?s).?<.?NewValue>(?[^<]*)"

Tags (3)
0 Karma

p_gurav
Champion
0 Karma

payal23
Path Finder

Adding simple fields is fine but i want to add this replace logic in my dashboards and then use the same with my tstats query

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...