Hello, below is a portion of my output file:
06/13-09 55 55.012358 [**] [1 1201 7] ATTACK-RESPONSES 403 Forbidden [**] [Classification Attempted Information Leak] [Priority 2] {TCP} 168.75.35.140 80 -> 66.194.6.71 45175
06/13-09 56 08.106537 [**] [1 1201 7] ATTACK-RESPONSES 403 Forbidden [**] [Classification Attempted Information Leak] [Priority 2] {TCP} 168.75.35.140 80 -> 66.194.6.80 33904
06/13-09 55 55.012358 [**] [1 1201 7] ATTACK-RESPONSES 403 Forbidden [**] [Classification Attempted Information Leak] [Priority 2] {TCP} 168.75.35.140 80 -> 66.194.6.71 45175
06/13-09 56 08.106537 [**] [1 1201 7] ATTACK-RESPONSES 403 Forbidden [**] [Classification Attempted Information Leak] [Priority 2] {TCP} 168.75.35.140 80 -> 66.194.6.80 33904
06/13-09 55 55.012358 [**] [1 1201 7] ATTACK-RESPONSES 403 Forbidden [**] [Classification Attempted Information Leak] [Priority 2] {TCP} 168.75.35.140 80 -> 66.194.6.71 45175
06/13-09 56 08.106537 [**] [1 1201 7] ATTACK-RESPONSES 403 Forbidden [**] [Classification Attempted Information Leak] [Priority 2] {TCP} 168.75.35.140 80 -> 66.194.6.80 33904
I'm looking for the count for each IP Address and the IP Address, for example, like below:
6 66.194.6.71
The below command was my attempt, but it does not work.
cat alert | grep "ATTACK-RESPONSES" | tr ":" " " | awk '{ print ($NF-1)}' | sort | uniq -c
Thanks,
Shane
06/13-09 55 55.012358 [**] [1 1201 7] ATTACK-RESPONSES 403 Forbidden [**] [Classification Attempted Information Leak] [Priority 2] {TCP} 168.75.35.140 80 -> 66.194.6.71 45175
06/13-09 56 08.106537 [**] [1 1201 7] ATTACK-RESPONSES 403 Forbidden [**] [Classification Attempted Information Leak] [Priority 2] {TCP} 168.75.35.140 80 -> 66.194.6.80 33904
06/13-09 55 55.012358 [**] [1 1201 7] ATTACK-RESPONSES 403 Forbidden [**] [Classification Attempted Information Leak] [Priority 2] {TCP} 168.75.35.140 80 -> 66.194.6.71 45175
06/13-09 56 08.106537 [**] [1 1201 7] ATTACK-RESPONSES 403 Forbidden [**] [Classification Attempted Information Leak] [Priority 2] {TCP} 168.75.35.140 80 -> 66.194.6.80 33904
06/13-09 55 55.012358 [**] [1 1201 7] ATTACK-RESPONSES 403 Forbidden [**] [Classification Attempted Information Leak] [Priority 2] {TCP} 168.75.35.140 80 -> 66.194.6.71 45175
06/13-09 56 08.106537 [**] [1 1201 7] ATTACK-RESPONSES 403 Forbidden [**] [Classification Attempted Information Leak] [Priority 2] {TCP} 168.75.35.140 80 -> 66.194.6.80 33904
I'm looking for the count for each IP Address and the IP Address, for example, like below:
6 66.194.6.71
The below command was my attempt, but it does not work.
cat alert | grep "ATTACK-RESPONSES" | tr ":" " " | awk '{ print ($NF-1)}' | sort | uniq -c
Thanks,
Shane