When I have made the change, I have used - https://dev.splunk.com/enterprise/reference/appinspect/appinspectcliref - to validate, that it's correct. However there were several problems. One was that there was mismatch between application name (TA-dataset) and the folder (package). Therefore I have renamed it to TA_s1datalake.
Another problem was caused by ModuleNotFoundError. I have no idea why it was happening. But it was solved by swapping order of imports.
🏫 Testing
UI With Examples Is Working ✅
All Scripts Are Working ✅
I do not know why, but existing scripts were failing on ModuleNotFoundError. I have fixed it by swapping order of dataset_common and dataset_api. Then I have logged in as splunk - sudo su - splunk and:
cd /opt/splunk/etc
for f in `find apps/TA_s1datalake/bin/ -name '*.py'`; do
echo $f;
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/opt/splunk/lib" /opt/splunk/bin/python3.7 $f;
done;
🛠️ Goal
When I have made the change, I have used - https://dev.splunk.com/enterprise/reference/appinspect/appinspectcliref - to validate, that it's correct. However there were several problems. One was that there was mismatch between application name (
TA-dataset
) and the folder (package
). Therefore I have renamed it to TA_s1datalake.Another problem was caused by
ModuleNotFoundError
. I have no idea why it was happening. But it was solved by swapping order of imports.🏫 Testing
UI With Examples Is Working ✅
All Scripts Are Working ✅
I do not know why, but existing scripts were failing on
ModuleNotFoundError
. I have fixed it by swapping order ofdataset_common
anddataset_api
. Then I have logged in as splunk -sudo su - splunk
and:Alerts UI Is Working ✅