You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This version includes a few major changes:
- `file_per_ko` mode, disabled by default, if enabled outputs 1 file per knowledge object instead of including all knowledge objects of a type within 1 file
- `next_scheduled_time` attribute removed from savedsearches (this results in less unnnessary git commits)
- code updated so that newlines are used in the json files, this makes the files stored in git more human readable and easier to see what changed between backups
- support added for http/https based git repositories in addition to ssh-based repo's
If you would like to use `file_per_ko` this will result in a lot more files in the git repository but this will make it easier to see the history of changes in each file
Note that you must set `file_per_ko` to true in both the backup & restore for this to work as expected, also if you change the setting you will need to re-create or wipe the repo as the files are stored differently
Updated all dashboards to include version="1.1" tag as required by new Splunk versions
Updated to Splunk python SDK 1.1.16
This version fixes a bug introduced by 1.1.13, version 1.1.13 was removed from SplunkBase due to an error in the code
Copy file name to clipboardExpand all lines: README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,6 +165,11 @@ There are also many online resources to help with learning git
165
165
- proxy - optional, if supplied provides a proxy setting to use to access the srcURL (https proxy). Use https://user:password:[email protected]:3128 and the application will obtain the password for the entry "passwordinpasswordsconf". If password: is not used the password is used as per a normal proxy setting, for example https://user:[email protected]:3128
166
166
- git_name - optional, if provided runs git config user.name to override the name used on this particular repository for git commits
167
167
- git_email - optional, if provided runs git config user.email to override the email used on this particular repository for git commits
168
+
"More settings"
169
+
- git_branch - optional, sets the git branch to use, defaults to master
170
+
- git_proxy - optional, if supplied provides a proxy setting to use to access the git repository (https proxy). Use https://user:password:[email protected]:3128 and the application will obtain the password for the entry 'passwordinpasswordsconf'. If password: is not used the password is used as per a normal proxy setting, for example https://user:[email protected]:3128
171
+
- file_per_ko - optional, do you want one file per knowledge object? Or a combined file? Defaults to false (i.e. 1 large file for global dashboards in an app). Note that if you change this setting you will need to re-create or wipe the repository as the files are stored differently...Note this setting should match in both backup and restore modular inputs for a particular repo
172
+
168
173
"More settings"
169
174
- interval - how often the backup should run, if not set the backup will only run on restart of the Splunk instance or when you save this configuration...
170
175
@@ -182,6 +187,9 @@ There are also many online resources to help with learning git
182
187
- git_command - optional, the location of the git command, this is mainly used on Windows where the git command may not be in the PATH of the user running Splunk
183
188
- ssh_command - optional, the location of the ssh command, this is mainly used on Windows where the git command may not be in the PATH of the user running Splunk
184
189
- proxy - optional, if supplied provides a proxy setting to use to access the destURL (https proxy). Use https://user:password:[email protected]:3128 and the application will obtain the password for the entry "passwordinpasswordsconf". If password: is not used the password is used as per a normal proxy setting, for example https://user:[email protected]:3128
190
+
- git_branch - optional, sets the git branch to use, defaults to master
191
+
- git_proxy - optional, if supplied provides a proxy setting to use to access the git repository (https proxy). Use https://user:password:[email protected]:3128 and the application will obtain the password for the entry 'passwordinpasswordsconf'. If password: is not used the password is used as per a normal proxy setting, for example https://user:[email protected]:3128
192
+
- file_per_ko - optional, do you want one file per knowledge object? Or a combined file? Defaults to false (i.e. 1 large file for global dashboards in an app). Note that if you change this setting you will need to re-create or wipe the repository as the files are stored differently...Note this setting should match in both backup and restore modular inputs for a particular repo
185
193
186
194
"More settings"
187
195
- interval - how often should the remote server be checked to see if a restore is required. If you are on-prem and using the dynamic restore dashboard you do not need to set an interval, if this is a cloud based system or using the non-dynamic dashboard this is the interval to check the remote server for if a restore needs to be run (i.e. how long it is between a user requesting a restore and this script checking/polling the remote system to run the restoration job)
@@ -266,6 +274,23 @@ To do this you will need to install Version Control For SplunkCloud on your Splu
-`file_per_ko` mode, disabled by default, if enabled outputs 1 file per knowledge object instead of including all knowledge objects of a type within 1 file
280
+
-`next_scheduled_time` attribute removed from savedsearches (this results in less unnnessary git commits)
281
+
- code updated so that newlines are used in the json files, this makes the files stored in git more human readable and easier to see what changed between backups
282
+
- support added for http/https based git repositories in addition to ssh-based repo's
283
+
284
+
If you would like to use `file_per_ko` this will result in a lot more files in the git repository but this will make it easier to see the history of changes in each file
285
+
286
+
Note that you must set `file_per_ko` to true in both the backup & restore for this to work as expected, also if you change the setting you will need to re-create or wipe the repo as the files are stored differently
287
+
288
+
Updated all dashboards to include version="1.1" tag as required by new Splunk versions
289
+
290
+
Updated to Splunk python SDK 1.1.16
291
+
292
+
This version fixes a bug introduced by 1.1.13, version 1.1.13 was removed from SplunkBase due to an error in the code
293
+
269
294
### 1.1.13
270
295
Updated saved search `Splunk Version Control Audit Query POST` with new regex
Copy file name to clipboardExpand all lines: README/inputs.conf.spec
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ srcPassword = <value>
8
8
gitTempDir =<value>
9
9
* location where to store the output of the script on the filesystem (note this directory will be deleted/re-created but the parent dir must exist)
10
10
gitRepoURL =<value>
11
-
*gitrepositoryURLtostoretheobjects (SSHURLonly)
11
+
* git repository URL to store the objects
12
12
sslVerify =<boolean>
13
13
* Set to 'true' or 'false' to enable/disable SSL verification for REST requests to `srcUrl`. Set to a path to specify a file with valid CA. (https://2.python-requests.org/en/master/user/advanced/#ssl-cert-verification)
14
14
noPrivate =<boolean>
@@ -43,6 +43,10 @@ git_email = <value>
43
43
* If set this runs git config user.email '<value>' once the backup git repo is cloned
44
44
git_branch =<value>
45
45
* Sets the git branch to use, defaults to master
46
+
git_proxy =<value>
47
+
* If supplied provides a proxy setting to use to access the git repository (https proxy). Use https://user:password:[email protected]:3128 and the application will obtain the password for the entry 'passwordinpasswordsconf'. If password: is not used the password is used as per a normal proxy setting, for example https://user:[email protected]:3128</description>
48
+
file_per_ko =<boolean>
49
+
* Do you want one file per knowledge object? Or a combined file? Defaults to false (i.e. 1 large file for global dashboards in an app). Note that if you change this you will need to re-create or wipe the repository as the files are stored differently...Note this setting should match in both backup and restore modular inputs for a particular repo
46
50
47
51
[splunkversioncontrol_restore://<name>]
48
52
destURL =<value>
@@ -54,10 +58,9 @@ destPassword = <value>
54
58
gitTempDir =<value>
55
59
* location where to store the output of the script on the filesystem (note this directory will be deleted/re-created but the parent dir must exist)
56
60
gitRepoURL =<value>
57
-
*gitrepositoryURLtostoretheobjects(SSHURLonly)
61
+
* git repository URL to restore the objects from
58
62
sslVerify =<boolean>
59
63
* Set to 'true' or 'false' to enable/disable SSL verification for REST requests to `srcUrl`. Set to a path to specify a file with valid CA. (https://2.python-requests.org/en/master/user/advanced/#ssl-cert-verification)
60
-
61
64
auditLogsLookupBackTime =<value>
62
65
* This is how far back the audit logs will be checked to ensure that a restore entry is valid, this should be set to your interval time or slightly more, defaults to -1h (use Splunk format)
63
66
debugMode =<boolean>
@@ -76,3 +79,7 @@ proxy = <value>
76
79
* If supplied provides a proxy setting to use to access the destURL (https proxy). Use https://user:password:[email protected]:3128 and the application will obtain the password for the entry 'passwordinpasswordsconf'. If password: is not used the password is used as per a normal proxy setting, for example https://user:[email protected]:3128
77
80
git_branch =<value>
78
81
* Sets the git branch to use, defaults to master
82
+
git_proxy =<value>
83
+
* If supplied provides a proxy setting to use to access the git repository (https proxy). Use https://user:password:[email protected]:3128 and the application will obtain the password for the entry 'passwordinpasswordsconf'. If password: is not used the password is used as per a normal proxy setting, for example https://user:[email protected]:3128</description>
84
+
file_per_ko =<boolean>
85
+
* Do you want one file per knowledge object? Or a combined file? Defaults to false (i.e. 1 large file for global dashboards in an app). Note that if you change this you will need to re-create or wipe the repository as the files are stored differently...Note this setting should match in both backup and restore modular inputs for a particular repo
<description>git repository URL to store the objects (SSH URL only)</description>
49
+
<description>git repository URL to store the objects</description>
49
50
</arg>
50
51
<arg name="sslVerify">
51
52
<title>sslVerify</title>
@@ -136,6 +137,16 @@
136
137
<description>Sets the git branch to use, defaults to master</description>
137
138
<required_on_create>false</required_on_create>
138
139
</arg>
140
+
<arg name="git_proxy">
141
+
<title>git_proxy</title>
142
+
<description>If supplied provides a proxy setting to use to access the git repository (https proxy). Use https://user:password:[email protected]:3128 and the application will obtain the password for the entry 'passwordinpasswordsconf'. If password: is not used the password is used as per a normal proxy setting, for example https://user:[email protected]:3128</description>
143
+
<required_on_create>false</required_on_create>
144
+
</arg>
145
+
<arg name="file_per_ko">
146
+
<title>file_per_ko</title>
147
+
<description>Do you want one file per knowledge object? Or a combined file? Defaults to false (i.e. 1 large file for global dashboards in an app)</description>
0 commit comments