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
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,12 @@ On a Linux-based system
82
82
83
83
Or the internal index which also has these log files
84
84
85
+
## Troubleshooting
86
+
In some Linux OS distributions an error similar to `OPENSSL_1.0.0 not found` may appear, `os.unsetenv('LD_LIBRARY_PATH')` appears to fix this however AppInspect does not allow modification of OS environment variables.
87
+
88
+
If you have this issue please add this into the python files to workaround the problem as required
89
+
Refer to [this issue on github](https://github.com/gjanders/SplunkVersionControl/issues/3) for more details
90
+
85
91
## Will this work on a search head cluster?
86
92
No, modular inputs run on each member at the same time which would not work well...however you can use a standalone server to backup/restore to a search head cluster.
87
93
You could also run the input on a single search head cluster member but this is not a recommended solution
logger.debug("i=\"%s\" Now persisting with knowledge objects of type=%s with sharing=app in app=%s into dir=%s"% (self.stanzaName, type, app, appLevelStorageDir))
368
368
ifnotos.path.isdir(appLevelStorageDir):
369
369
os.mkdir(appLevelStorageDir)
370
370
withopen(appLevelStorageDir+"/"+type, 'w') asf:
371
-
json.dump(infoList["app"], f)
371
+
json.dump(infoList["app"], f, sort_keys=True)
372
372
ifinfoList.has_key("user"):
373
373
#persist user level to disk
374
374
userLevelStorageDir=appStorageDir+"/user"
375
375
logger.debug("i=\"%s\" Now persisting with knowledge objects of type=%s sharing=user (private) in app=%s into dir=%s"% (self.stanzaName, type, app, userLevelStorageDir))
376
376
ifnotos.path.isdir(userLevelStorageDir):
377
377
os.mkdir(userLevelStorageDir)
378
378
withopen(userLevelStorageDir+"/"+type, 'w') asf:
379
-
json.dump(infoList["user"], f)
379
+
json.dump(infoList["user"], f, sort_keys=True)
380
380
returncreationSuccess
381
381
382
382
###########################
@@ -509,23 +509,23 @@ def macros(self, app):
509
509
ifnotos.path.isdir(globalStorageDir):
510
510
os.mkdir(globalStorageDir)
511
511
withopen(globalStorageDir+"/macros", 'w') asf:
512
-
json.dump(macros["global"], f)
512
+
json.dump(macros["global"], f, sort_keys=True)
513
513
ifmacros.has_key("app"):
514
514
logger.debug("i=\"%s\" Now persisting knowledge objects of type=macro with sharing=app in app=%s"% (self.stanzaName, app))
515
515
#persist app level to disk
516
516
appLevelStorageDir=appStorageDir+"/app"
517
517
ifnotos.path.isdir(appLevelStorageDir):
518
518
os.mkdir(appLevelStorageDir)
519
519
withopen(appLevelStorageDir+"/macros", 'w') asf:
520
-
json.dump(macros["app"], f)
520
+
json.dump(macros["app"], f, sort_keys=True)
521
521
ifmacros.has_key("user"):
522
522
logger.debug("i=\"%s\" Now persisting knowledge objects of type=macro with sharing=user (private) in app %s"% (self.stanzaName, app))
0 commit comments