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!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...