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!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...