Bre77 / badrcm

Brett Adams' Dangerous REST Config Manager
4 stars 0 forks source link

Copying a config file from app A to app B on the same server? #7

Open shartwell1 opened 2 months ago

shartwell1 commented 2 months ago

Q. Is it possible to config copy an entire config file (e.g. savedsearches.conf) from one app to another on the same server? Use case is get around Splunk Cloud uploads to the "default" folder (which can't be deleted) by doing something like this:

appA/default/savedsearches.conf --> appB/local/savedsearches.conf

Thanks in advance!

Bre77 commented 2 months ago

Yes that definitely should be possible using the copy page and selecting the same server in both columns. The app will always save the changes to local.

shartwell1 commented 2 months ago

Good news…but when I try this exact thing, it won’t change that first line below which looks like the app A version in app.conf. It says App A 1.0.0 and second column says the same. Maybe a bug?

Get Outlook for iOShttps://aka.ms/o0ukef


From: Brett Adams @.> Sent: Friday, April 19, 2024 7:44:45 PM To: Bre77/badrcm @.> Cc: Scott Hartwell @.>; Author @.> Subject: Re: [Bre77/badrcm] Copying a config file from app A to app B on the same server? (Issue #7)

CAUTION: External Sender

Yes that definitely should be possible using the copy page and selecting the same server in both columns. The app will always save the changes to local.

— Reply to this email directly, view it on GitHubhttps://github.com/Bre77/badrcm/issues/7#issuecomment-2067398377, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQJL6NILTRGY6Q7X2YF4G3LY6GT63AVCNFSM6AAAAABGP6WI6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRXGM4TQMZXG4. You are receiving this because you authored the thread.Message ID: @.***>

This email may contain confidential information and is intended solely for the recipient. If you are not the intended recipient, please delete the email and any attachments immediately and notify the sender.

Bre77 commented 2 months ago

@shartwell1 Ah yes, unfortuantely you are correct, the copy page does maintain the app context when copying which does not meet your needs. The terrible way to achieve this would be to connect a Splunk Enterprise instance to the app, migrate the configuration there, rename the app using SSH or Config Explorer, and then migrate it back to the Cloud. You could also migrate it back to the same app after deleting it in cloud to get it out of default.

shartwell1 commented 2 months ago

Thanks - ok cool - so shortest path would be create searches in local context in Enterprise installation and copy to empty app of same name in Cloud? 🤔

Get Outlook for iOShttps://aka.ms/o0ukef


From: Brett Adams @.> Sent: Sunday, April 21, 2024 6:36:38 PM To: Bre77/badrcm @.> Cc: Scott Hartwell @.>; Mention @.> Subject: Re: [Bre77/badrcm] Copying a config file from app A to app B on the same server? (Issue #7)

CAUTION: External Sender

@shartwell1https://github.com/shartwell1 Ah yes, unfortuantely you are correct, the copy page does maintain the app context when copying which does not meet your needs. The terrible way to achieve this would be to connect a Splunk Enterprise instance to the app, migrate the configuration there, rename the app using SSH or Config Explorer, and then migrate it back to the Cloud. You could also migrate it back to the same app after deleting it in cloud to get it out of default.

— Reply to this email directly, view it on GitHubhttps://github.com/Bre77/badrcm/issues/7#issuecomment-2068230577, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQJL6NO6F4XAU6KOEGTYO4LY6Q5PNAVCNFSM6AAAAABGP6WI6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRYGIZTANJXG4. You are receiving this because you were mentioned.Message ID: @.***>

This email may contain confidential information and is intended solely for the recipient. If you are not the intended recipient, please delete the email and any attachments immediately and notify the sender.