Splunk Search

SplunkJS Getting collection name based on a lookup

MisteRious
Explorer

When you define a new kvstore based collection you use stanza with both new collection name and the base lookup for the collection. My question is - how to get the collection name based on the lookup, preferably from SplunkJS, but any hint would be nice.

Regards,
Mikolaj

0 Karma

MisteRious
Explorer

For anyone curious about how to do that - the only way to achieve this seems to be using searchamanger to launch a query that reads the config file itself, detects every stanza and reads it's properties. Than it needs to create a two-dimensional array containing the collection name + lookup pairs.... If anyone finds a better solution, please let me know.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...