File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# # Gather Logs
4
- # # Version 1.0 , June 3 , 2023
4
+ # # Version 1.1 , June 16 , 2023
5
5
# # By Kevin M. Cox
6
6
7
7
# # This script gathers macOS and application logs then creates a tarball so users can attach the results to IT tickets for evaluation.
@@ -36,10 +36,17 @@ currentUser="$(/usr/sbin/scutil <<< "show State:/Users/ConsoleUser" | /usr/bin/a
36
36
/bin/mkdir " $outputFolder " /User-Library-Logs/
37
37
/bin/cp -pr /Users/" $currentUser " /Library/Logs/ " $outputFolder " /User-Library-Logs/
38
38
39
+ # CrowdStrike Falcon stats
40
+ falconctl=" /Applications/Falcon.app/Contents/Resources/falconctl"
41
+ if [ -x $falconctl ]; then
42
+ /bin/mkdir " $outputFolder " /CrowdStrike-Falcon/
43
+ $falconctl stats > " $outputFolder " /CrowdStrike-Falcon/stats.log
44
+ fi
45
+
39
46
# AWS VPN logs
40
47
if [ -d /Users/" $currentUser " /.config/AWSVPNClient/logs/ ]; then
41
- /bin/mkdir " $outputFolder " /AWS-VPN-logs /
42
- /bin/cp -pr /Users/" $currentUser " /.config/AWSVPNClient/logs/ " $outputFolder " /AWS-VPN-logs /
48
+ /bin/mkdir " $outputFolder " /AWS-VPN/
49
+ /bin/cp -pr /Users/" $currentUser " /.config/AWSVPNClient/logs/ " $outputFolder " /AWS-VPN/
43
50
fi
44
51
45
52
# Create a compressed tar archive of the files
You can’t perform that action at this time.
0 commit comments