scalyr / dataset-addon-for-splunk

The DataSet Add-on for Splunk provides integration with
Apache License 2.0
4 stars 6 forks source link

DSET-4300: Rebranding of the application #23

Closed martin-majlis-s1 closed 1 year ago

martin-majlis-s1 commented 1 year ago

🛠️ 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 ✅

Screenshot-DataLake

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;

Alerts UI Is Working ✅

Screenshot 2023-07-27 at 12 17 08