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!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

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

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...