A Splunk app to process NTSB Safety Data. This app now supports the Splunk Cloud platform.
- Click the Settings gear icon next to Apps on the Launcher homepage.
- Click Install app from file.
- Navigate to ntsb_app_for_splunk.tar.gz.
- Click Upload.
- Restart Splunk.
- Click Add Data on the Launcher homepage.
- Click Upload files from my computer.
- Click Select File.
- Navigate to the location of the AviationData.csv data file. This file will be in $REPO_HOME\jupyter_for_all_ntsb\output\ directory if you used the data download and cleanse workflow.
- Click Next.
- For Source type, click Custom, then select ntsb_csv.
- Click Next.
- For Index, click Create a new index, set Index Name to ntsb_csv, set Max Size of Entire Index to 50MB, set App to NTSB App for Splunk.
- Click Save.
- Click Review.
- Click Submit.
- Select Apps | NTSB App for Splunk.
To use this app, the raw data file from NTSB needs to be downloaded and reformatted. There are two Jupyter Notebooks to assist with the data cleanup. The app assumes the cleanup Jupyter Notebook has been run against the base CSV download.
- data_set_download.ipynb - used to download the raw data file from NTSB.
- data_set_cleanup.ipynb - used to process the raw data file, specifically reconfiguring the date format and parsing the Location field into separate City and State fields. The notebook is available from Github
The airport details data has been downloaded from OurAirports.com. More information on the project and the Public Domain license can be found here.
- Clone github repo
git clone https://github.com/csyvenky/ntsb_app_for_splunk
. - Make your enhancements and increase the Build and Version numbers in the ./default/app.conf file.
- Make a tarball of the app folder
tar --exclude='ntsb_app_for_splunk/.vscode' --exclude='ntsb_app_for_splunk/.git*' --exclude='.DS_Store*' -czvf ntsb_app_for_splunk.tar.gz ntsb_app_for_splunk/
. - Run AppInspect validation via Postman
https://dev.splunk.com/enterprise/docs/developapps/testvalidate/appinspect/splunkappinspectapi/runrequestspostman
. - Test the app installation on clean instance of Splunk.