File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -80,4 +80,7 @@ for CSV_FILE_PATH in "${!MAIN_DATA[@]}"; do
80
80
sudo /opt/splunk/bin/splunk add oneshot " $CSV_FILE_PATH " -index " $MAIN_INDEX_NAME " -sourcetype csv -host " ${MAIN_DATA[$CSV_FILE_PATH]} " -auth ' codepath:codepath'
81
81
done
82
82
83
- echo -e " ${green} [UNIT 5 LAB]${none} Added data to Splunk."
83
+ echo -e " ${green} [UNIT 5 LAB]${none} Added data to Splunk."
84
+
85
+ # Clean up the tmp_splunk directory
86
+ rm -rf " $HOME /tmp_splunk"
Original file line number Diff line number Diff line change @@ -36,4 +36,7 @@ for CSV_FILE_PATH in "${PATHCODE_CSV_FILE_PATHS[@]}"; do
36
36
sudo /opt/splunk/bin/splunk add oneshot " $CSV_FILE_PATH " -index " $PATHCODE_INDEX_NAME " -sourcetype csv -host " $FILE_BASENAME " -auth ' codepath:codepath'
37
37
done
38
38
39
- echo -e " ${green} [UNIT 5 Project]${none} Added data to Splunk."
39
+ echo -e " ${green} [UNIT 5 Project]${none} Added data to Splunk."
40
+
41
+ # Clean up the tmp_splunk directory
42
+ rm -rf " $HOME /tmp_splunk"
You can’t perform that action at this time.
0 commit comments