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 | What is broken 80% of the time by February?

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

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...