Splunk Search

How to create and populate a new field during search time ?

Ombessam
Path Finder

Hello Guys,

Here is the current situation

Screenshot 2025-07-09 at 18.22.47.png

Below is what I'd like to achieve

Screenshot 2025-07-09 at 19.30.32.png

I've tried the following with no success

Screenshot 2025-07-09 at 19.06.01.png

 

Can anyone help me achieve my goal ? Thanks in advance

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| makeresults count=3
| streamstats count
| eval _time=_time+ count*3600
| eval asset_names="Asset1 Asset2 Asset3"
| makemv delim=" " asset_names
| eval asset_names=mvindex(asset_names, count-1)

View solution in original post

Ombessam
Path Finder

Thanks @ITWhisperer 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| makeresults count=3
| streamstats count
| eval _time=_time+ count*3600
| eval asset_names="Asset1 Asset2 Asset3"
| makemv delim=" " asset_names
| eval asset_names=mvindex(asset_names, count-1)
Get Updates on the Splunk Community!

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...