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!

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, ...