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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...