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!

App Platform's 2025 Year in Review: A Year of Innovation, Growth, and Community

As we step into 2026, it’s the perfect moment to reflect on what an extraordinary year 2025 was for the Splunk ...

Operationalizing Entity Risk Score with Enterprise Security 8.3+

Overview Enterprise Security 8.3 introduces a powerful new feature called “Entity Risk Scoring” (ERS) for ...

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...