All Apps and Add-ons

Splunk apps directory structure and extensibility

koshyk
Super Champion

We have a requirement to create some complex scripts and enrichment, which may not fit with the current directory structure of Splunk apps as per below image. We have focused on "bin" "local" "lookups" specifically where by
1. the enrichment lookup is a json/xml
2. Trying to put a flexible JSON file in the "local" directory for the end customer to amend (without need of another spec file)

(Of course we know we can inject everything into bin directory which we don't want to)

alt text

So ultimately,
we are looking for
(a) .json or .xml file in lookups for end user to enrich certain items (not just csv)
(b) .json file in "default OR local" for end user to add logic

Do you know if there are any file interrogation done by Splunk? i.e. if we put a json file in the "default/local" directories, will it cause problems in cluster environments while replicating?

If there is no way, I'm planning to extend bin to have a type of directory structure for the end-user to amend/add logic.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @koshyk,
if you don't use extensions ".conf", I don't think that you can have problems.
Anyway, why don't you use the appserver folder instead the "local" folder?

Ciao.
Giuseppe

0 Karma

koshyk
Super Champion

the Reason is to give the end-user ability to update the config similar to Splunk. They are comforable with "local" directory and all changes will be limited to "local" directory.
But as you observed, the "appserver" directory is equally good as bin" directory.

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!

Agent Mode Engaged! Enchaining Agentic Operations with Splunk AI Assistant 2.0

    Are you ready to transform how your team handles complex data requests? We invite you to our upcoming ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...