Getting Data In

Is there any reason I shouldn't edit an add-on's bin directory files?

thisissplunk
Builder

I want to add a few things to an app that sends off API commands when saved searches trigger. Basically a new field for the API, so a new GUI element to fill out during the alert trigger config, and then one new line in the API script that gets executed.

Is there any reason I can't just go into that app's bin/ directory and edit the code right there? Will it break anything, or is there a process that needs to be followed during changes like this?

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

I'm assuming this is not your app. You can probably get away with editing the code, but your changes will be lost when the app is updated. That's easily avoided using your favorite change control system, but is something to be aware of.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I'm assuming this is not your app. You can probably get away with editing the code, but your changes will be lost when the app is updated. That's easily avoided using your favorite change control system, but is something to be aware of.

---
If this reply helps you, Karma would be appreciated.
0 Karma

thisissplunk
Builder

Yes, not mine. Definitely something to be aware of in terms of updating. Is there anything else that I need to understand before just changing code?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

To avoid breaking things for other users, consider creating a copy of the app and making your changes to the copy. Of course, that may create other problems with precedence (which app's config wins).

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

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