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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...