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!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...