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!

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

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...