Getting Data In

Variable string processing in variable string in map command

litmuspaper
Loves-to-Learn Lots

litmuspaper_0-1604391270333.png

IF the _raw is the same as above, I want to search with the query below.

Index=_internal sourcetype=splunkd

 

I want to use the map command with the contents of the C column. Without putting A and B columns in the map command

NO  ->>  | map search="search earliest=-1d@d latest=now index=$a$ sourcetype=$b$"

 

I used this SPL, but it did not produce the desired result.

| map search="search earliest=-1d@d latest=now $c$"

I guess this query seems to mean this.

search earliest=-1d@d latest=now index=$a$ sourcetype=$b$

 

Help, Variable string processing in variable string in map command. Please

0 Karma

richgalloway
SplunkTrust
SplunkTrust

All searches should specify an index for better performance.  Those searches that do not specify an index will search the role's default index(es), which may not include the desired index.  If your role does not include "_internal" as a default index then searching "$c$" will return nothing if "$c$" only exists in the internal index.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Application management with Targeted Application Install for Victoria Experience

  Experience a new era of flexibility in managing your Splunk Cloud Platform apps! With Targeted Application ...

Index This | What goes up and never comes down?

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

Splunkers, Pack Your Bags: Why Cisco Live EMEA is Your Next Big Destination

The Power of Two: Splunk + Cisco at "Ludicrous Scale"   You know Splunk. You know Cisco. But have you seen ...