Splunk Search

How to show the mapped field when using map

aohls
Contributor

I am attempting to use the map command and table the data. I am trying to map in values to run through the a predict function and table the results. I get 90% there except the fields that are predicted do not populate the op value.

 

<my search>
| table op
|map [search op=$op$ <more search stuff> ]
...
| timechart count as Vol, values(op) as op
| predict Vol

 


When doing this I get a table with multiple times, once for each op like the below:

_timeVolophigh(prediction(Vol))low(prediction(Vol))
12:0010test1127
12:0011test2148
12:1515test11711
12:1512test21510
12:30(predicted time)  1610
12:30(predicted time)  129

 

Any ideas why this is no populating?

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Try

| timechart count as Vol by op
0 Karma

aohls
Contributor

This errors out, predict can't be used if the timechart has a split by.  I have used map work around this and pass in the op, run the predict for each oue and get the data. With the output though there is no way to tell what belongs to what op.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Persistent Queue at TcpOut — One of Splunk's Most Practical Features

Splunk introduced persistent queueing at the tcpout layer as one of the most practical resilience features in ...

Skip the Awkward Silence: Have a .conf-ersation at .conf26

Picture this. You arrive at .conf26 already having your socializing and networking plans mapped out. No ...

Rethinking Zero Trust: From Product Purchases to Logical Control Evidence

Implementing Zero Trust (ZT) across complex environments often falters at the very beginning due to a ...