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
Get Updates on the Splunk Community!

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...