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

Index This | What travels the world but is also stuck in place?

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

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...