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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...