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!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

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 ...