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 Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...