PDA

View Full Version : Script for MDS log summary



jflemingeds
2018-01-10, 17:05
Hi I made this .. um... wonderful script to give me some worst case numbers for a R77.30 MDS based on how many logs were in the system. Shows highest number of logs per day per CMA.



#!/bin/sh
# Print log rate data on all Domains

# execute the script that defines Check Point environment variables
source /etc/profile


TOTAL_LOGS_COUNT=0
TOTAL_LOGS_SIZE=0
TOTAL_LOGS_PER_SEC=0
for DOMAIN in $(ls -1 $MDSDIR/customers)
do
mdsenv "$DOMAIN"
echo "Working on $DOMAIN"
CPLogInvestigator -a -p >& $DOMAIN-logs.txt || ( echo "Please install CPLogInvestigator sk87263" ; exit 1 )
HIGHEST_LOGS_PER_DAY=$( awk '/([0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]|fw.log) \|/ {print $5}' $DOMAIN-logs.txt | sort -rn | head -1)
HIGHEST_LOGS_SIZE_PER_DAY=$( awk '/([0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]|fw.log) \|/ {print $3}' $DOMAIN-logs.txt | sort -rn | head -1)
echo "For CMA $DOMAIN"
echo " Highest logs per day $HIGHEST_LOGS_PER_DAY"
echo " Logs Avg Per Sec $(( $HIGHEST_LOGS_PER_DAY / 86400)) "
echo " Highest gigbytes day $HIGHEST_LOGS_SIZE_PER_DAY"
TOTAL_LOGS_COUNT=$( echo | awk "{print $TOTAL_LOGS_COUNT + $HIGHEST_LOGS_PER_DAY}" )
TOTAL_LOGS_SIZE=$( echo | awk "{print $TOTAL_LOGS_SIZE + $HIGHEST_LOGS_SIZE_PER_DAY}" )

done

echo
echo "For hostname: $( hostname )"
echo "Highest Daily logs per day across all CMAs: $( echo $TOTAL_LOGS_COUNT | sed ':a;s/\B[0-9]\{3\}\>/,&/;ta' )"
echo "Highest average logs per second across all CMAs: $( echo $(( TOTAL_LOGS_COUNT / 86400)) | sed ':a;s/\B[0-9]\{3\}\>/,&/;ta' )"
echo "Highest log file size per day across all CMAs: $TOTAL_LOGS_SIZE GBs"
echo
exit 0

jflemingeds
2018-01-10, 17:16
And before you ask, yes, i did in fact write that sed statement and for sure did not look that up on google at all.

Not... at ... all.

cciesec2006
2018-01-10, 17:50
And before you ask, yes, i did in fact write that sed statement and for sure did not look that up on google at all.

Not... at ... all.

Look like there is an syntax error in the script:

[Expert@p1:0]# /etc/scripts/logs
Working on cma-192.168.1.10
For CMA cma-192.168.1.10
Highest logs per day
/etc/scripts/logs: line 22: / 86400: syntax error: operand expected (error token is "/ 86400")
[Expert@p1:0]#

jflemingeds
2018-01-10, 18:10
Look like there is an syntax error in the script:

[Expert@p1:0]# /etc/scripts/logs
Working on cma-192.168.1.10
For CMA cma-192.168.1.10
Highest logs per day
/etc/scripts/logs: line 22: / 86400: syntax error: operand expected (error token is "/ 86400")
[Expert@p1:0]#

hmm i think thats because bash doesn't support float or one of those number might be coming up zero.

Can you run bash -x script?

cciesec2006
2018-01-11, 07:04
with "bash -x /etc/scripts/logs":

[Expert@p1:0]# bash -x /etc/scripts/logs
+ HIGHEST_LOGS_PER_DAY=
++ awk '/[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] \|/ {print $3}' cma-192.168.1.10-logs.txt
++ sort -k5 -rn
++ head -1
+ HIGHEST_LOGS_SIZE_PER_DAY=
+ echo 'For CMA cma-192.168.1.10'
For CMA cma-192.168.1.10
+ echo ' Highest logs per day '
Highest logs per day
/etc/scripts/logs: line 22: / 86400: syntax error: operand expected (error token is "/ 86400")
+ echo

++ hostname
+ echo 'For hostname: p1'
For hostname: p1
++ echo 0
++ sed ':a;s/\B[0-9]\{3\}\>/,&/;ta'
+ echo 'Highest Daily logs per day across all CMAs: 0'
Highest Daily logs per day across all CMAs: 0
++ echo 0
++ sed ':a;s/\B[0-9]\{3\}\>/,&/;ta'
+ echo 'Highest average logs per second across all CMAs: 0'
Highest average logs per second across all CMAs: 0
+ echo 'Highest log file size per day across all CMAs: 0 GBs'
Highest log file size per day across all CMAs: 0 GBs
+ echo

+ exit 0
[Expert@p1:0]#

jflemingeds
2018-01-11, 14:15
with "bash -x /etc/scripts/logs":

[Expert@p1:0]# bash -x /etc/scripts/logs
+ HIGHEST_LOGS_PER_DAY=
++ awk '/[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] \|/ {print $3}' cma-192.168.1.10-logs.txt
++ sort -k5 -rn
++ head -1
+ HIGHEST_LOGS_SIZE_PER_DAY=
+ echo 'For CMA cma-192.168.1.10'
For CMA cma-192.168.1.10
+ echo ' Highest logs per day '
Highest logs per day
/etc/scripts/logs: line 22: / 86400: syntax error: operand expected (error token is "/ 86400")
+ echo

++ hostname
+ echo 'For hostname: p1'
For hostname: p1
++ echo 0
++ sed ':a;s/\B[0-9]\{3\}\>/,&/;ta'
+ echo 'Highest Daily logs per day across all CMAs: 0'
Highest Daily logs per day across all CMAs: 0
++ echo 0
++ sed ':a;s/\B[0-9]\{3\}\>/,&/;ta'
+ echo 'Highest average logs per second across all CMAs: 0'
Highest average logs per second across all CMAs: 0
+ echo 'Highest log file size per day across all CMAs: 0 GBs'
Highest log file size per day across all CMAs: 0 GBs
+ echo

+ exit 0
[Expert@p1:0]#

Do you have CPLogInvestigator on your system? If not can you install it? If you do can you show the output of cma-192.168.1.10-logs.txt?

cciesec2006
2018-01-11, 15:59
Do you have CPLogInvestigator on your system? If not can you install it? If you do can you show the output of cma-192.168.1.10-logs.txt?

What is CPLogInvestigator? How do I find out if it is installed on my P1 system?

jflemingeds
2018-01-11, 16:12
What is CPLogInvestigator? How do I find out if it is installed on my P1 system?

sk87263 - I thought it shipped with R77.30. Maybe not. I'm adding a check for that.

jflemingeds
2018-01-11, 16:15
ok try it again. I updated the first post.

cciesec2006
2018-01-11, 16:42
ok try it again. I updated the first post.

No more errors but nothing come back but this:

[Expert@p1-mc:0]# /etc/scripts/logs
Working on cma-10.109.114.12
[Expert@p1-mc:0]#

jflemingeds
2018-01-11, 16:55
No more errors but nothing come back but this:

[Expert@p1-mc:0]# /etc/scripts/logs
Working on cma-10.109.114.12
[Expert@p1-mc:0]#

hmm ok run this and show the output.

mdsenv cma-10.109.114.12
CPLogInvestigator -a -p

cciesec2006
2018-01-11, 17:12
hmm ok run this and show the output.

mdsenv cma-10.109.114.12
CPLogInvestigator -a -p


I have 4 Active CMAs in this provider-1. 10.109.114.12 is one of them

[Expert@p1-mc:0]# mdsenv 10.109.114.12
[Expert@p1-mc:0]# CPLogInvestigator -a -p


Thank you for using log investigator tool.

================================================== ============
File /opt/CPmds-R77/customers/cma-10.109.114.12/CPsuite-R77/fw1/log/profile_creator.log is not log file, Skipping file
File /opt/CPmds-R77/customers/cma-10.109.114.12/CPsuite-R77/fw1/log/fwui.log is not log file, Skipping file
Start reading log file: /opt/CPmds-R77/customers/cma-10.109.114.12/CPsuite-R77/fw1/log/fw.log

.
Reading log file is DONE.


Total scanned 114432 logs out of 114434 logs in file
Scanned logs dates are from 11-01-2018 00:03:32 to 11-01-2018 21:14:56

========================================
Product log statistics (Per Day):
- HTTPS Inspection : 1
- Security Gateway/Management : 29
- VPN-1 & FireWall-1 : 71253


Total logs per day:

Date | GB | Count
2017-01-01 | 0.0071 | 62798
2017-01-02 | 0.0071 | 63121
2017-01-03 | 0.0071 | 62896
2017-01-04 | 0.0074 | 65201
2017-01-05 | 0.0071 | 63369
2017-01-06 | 0.0082 | 72293
2017-01-07 | 0.0072 | 63473
2017-01-08 | 0.0073 | 64360
2017-01-09 | 0.0072 | 63870
2017-01-10 | 0.0072 | 64197
2017-01-11 | 0.0072 | 63973
2017-01-12 | 0.0072 | 63922
2017-01-13 | 0.0082 | 72235
2017-01-14 | 0.0104 | 91445
2017-01-15 | 0.0105 | 91672
2017-01-16 | 0.0103 | 89922
2017-01-17 | 0.0105 | 91509
2017-01-18 | 0.0107 | 93313
2017-01-19 | 0.0103 | 89825
2017-01-20 | 0.0109 | 97131
2017-01-21 | 0.0122 | 120317
2017-01-22 | 0.0123 | 121002
2017-01-23 | 0.0130 | 126174
2017-01-24 | 0.0122 | 119760
2017-01-25 | 0.0124 | 121694
2017-01-26 | 0.0174 | 160141
2017-01-27 | 0.0172 | 158927
2017-01-28 | 0.0131 | 127528
2017-01-29 | 0.0129 | 126173
2017-01-30 | 0.0124 | 119617
2017-01-31 | 0.0085 | 74618
2017-02-01 | 0.0147 | 126128
2017-02-02 | 0.0186 | 157625
2017-02-03 | 0.0125 | 115222
2017-02-04 | 0.0094 | 83711
2017-02-05 | 0.0119 | 105569
2017-02-06 | 0.0127 | 111476
2017-02-07 | 0.0118 | 104153
2017-02-08 | 0.0115 | 101716
2017-02-09 | 0.0108 | 95814
2017-02-10 | 0.0116 | 101176
2017-02-11 | 0.0101 | 89899
2017-02-12 | 0.0103 | 91024
2017-02-13 | 0.0104 | 91475
2017-02-14 | 0.0114 | 99712
2017-02-15 | 0.0135 | 115520
2017-02-16 | 0.0121 | 105207
2017-02-17 | 0.0124 | 107162
2017-02-18 | 0.0116 | 101165
2017-02-19 | 0.0117 | 102159
2017-02-20 | 0.0107 | 93777
2017-02-21 | 0.0109 | 94421
2017-02-22 | 0.0111 | 94197
2017-02-23 | 0.0117 | 99718
2017-02-24 | 0.0119 | 101364
2017-02-25 | 0.0113 | 96777
2017-02-26 | 0.0113 | 96554
2017-02-27 | 0.0113 | 96472
2017-02-28 | 0.0120 | 101477
2017-03-01 | 0.0224 | 184317
2017-03-02 | 0.0131 | 109266
2017-03-03 | 0.0127 | 106339
2017-03-04 | 0.0125 | 104475
2017-03-05 | 0.0125 | 104637
2017-03-06 | 0.0126 | 105430
2017-03-07 | 0.0132 | 110087
2017-03-08 | 0.0129 | 108134
2017-03-09 | 0.0135 | 112930
2017-03-10 | 0.0129 | 107837
2017-03-11 | 0.0124 | 104274
2017-03-12 | 0.0126 | 105846
2017-03-13 | 0.0129 | 107639
2017-03-14 | 0.0105 | 89585
2017-03-15 | 0.0108 | 91859
2017-03-16 | 0.0101 | 86069
2017-03-17 | 0.0098 | 83639
2017-03-18 | 0.0103 | 88154
2017-03-19 | 0.0099 | 84521
2017-03-20 | 0.0098 | 84152
2017-03-21 | 0.0120 | 102445
2017-03-22 | 0.0153 | 130287
2017-03-23 | 0.0103 | 89056
2017-03-24 | 0.0110 | 94646
2017-03-25 | 0.0113 | 96661
2017-03-26 | 0.0093 | 80345
2017-03-27 | 0.0115 | 97534
2017-03-28 | 0.0130 | 108959
2017-03-29 | 0.0130 | 109108
2017-03-30 | 0.0122 | 102410
2017-03-31 | 0.0106 | 88050
2017-04-01 | 0.0109 | 90532
2017-04-02 | 0.0103 | 86024
2017-04-03 | 0.0105 | 87695
2017-04-04 | 0.0109 | 91007
2017-04-05 | 0.0105 | 87925
2017-04-06 | 0.0103 | 86749
2017-04-07 | 0.0117 | 98745
2017-04-08 | 0.0176 | 142792
2017-04-09 | 0.0176 | 142708
2017-04-10 | 0.0178 | 144458
2017-04-11 | 0.0173 | 140480
2017-04-12 | 0.0172 | 139800
2017-04-13 | 0.0177 | 143965
2017-04-14 | 0.0173 | 140310
2017-04-15 | 0.0177 | 143483
2017-04-16 | 0.0176 | 143330
2017-04-17 | 0.0178 | 144821
2017-04-18 | 0.0187 | 151693
2017-04-19 | 0.0183 | 148676
2017-04-20 | 0.0190 | 153773
2017-04-21 | 0.0187 | 151419
2017-04-22 | 0.0188 | 151915
2017-04-23 | 0.0181 | 146807
2017-04-24 | 0.0187 | 150784
2017-04-25 | 0.0137 | 111526
2017-04-26 | 0.0121 | 99794
2017-04-27 | 0.0131 | 108418
2017-04-28 | 0.0121 | 99788
2017-04-29 | 0.0118 | 97133
2017-04-30 | 0.0095 | 79880
2017-05-01 | 0.0092 | 77104
2017-05-02 | 0.0110 | 92259
2017-05-03 | 0.0114 | 95580
2017-05-04 | 0.0125 | 104400
2017-05-05 | 0.0120 | 100658
2017-05-06 | 0.0117 | 98272
2017-05-07 | 0.0117 | 98052
2017-05-08 | 0.0117 | 98348
2017-05-09 | 0.0118 | 98583
2017-05-10 | 0.0121 | 101404
2017-05-11 | 0.0118 | 98904
2017-05-12 | 0.0094 | 80258
2017-05-13 | 0.0065 | 58283
2017-05-14 | 0.0065 | 58018
2017-05-15 | 0.0058 | 52462
2017-05-16 | 0.0064 | 57628
2017-06-05 | 0.0075 | 66954
2017-06-06 | 0.0067 | 59654
2017-06-07 | 0.0056 | 51392
2017-06-08 | 0.0059 | 53907
2017-06-09 | 0.0068 | 60458
2017-06-10 | 0.0067 | 59807
2017-06-11 | 0.0065 | 58449
2017-06-12 | 0.0066 | 59274
2017-06-13 | 0.0065 | 58245
2017-06-14 | 0.0068 | 60343
2017-06-15 | 0.0065 | 58696
2017-06-16 | 0.0066 | 59436
2017-06-17 | 0.0065 | 58321
2017-06-18 | 0.0069 | 61891
2017-06-19 | 0.0067 | 60102
2017-06-20 | 0.0065 | 58591
2017-06-21 | 0.0067 | 59510
2017-06-22 | 0.0065 | 58302
2017-06-23 | 0.0074 | 65285
2017-06-24 | 0.0067 | 60118
2017-06-25 | 0.0069 | 61492
2017-06-26 | 0.0065 | 58353
2017-06-27 | 0.0065 | 58573
2017-06-28 | 0.0068 | 60414
2017-06-29 | 0.0065 | 58601
2017-06-30 | 0.0106 | 90659
2017-07-01 | 0.0163 | 134341
2017-07-02 | 0.0150 | 124993
2017-07-03 | 0.0131 | 110198
2017-07-04 | 0.0143 | 120466
2017-07-05 | 0.0141 | 118312
2017-07-06 | 0.0101 | 86034
2017-07-07 | 0.0113 | 96514
2017-07-08 | 0.0093 | 80067
2017-07-09 | 0.0096 | 82321
2017-07-10 | 0.0097 | 82672
2017-07-11 | 0.0101 | 86688
2017-07-12 | 0.0109 | 93443
2017-07-13 | 0.0131 | 111177
2017-07-14 | 0.0096 | 82304
2017-07-15 | 0.0093 | 79983
2017-07-16 | 0.0096 | 81720
2017-07-17 | 0.0096 | 81661
2017-07-18 | 0.0094 | 80172
2017-07-19 | 0.0107 | 90666
2017-07-20 | 0.0281 | 236148
2017-07-21 | 0.0098 | 82035
2017-07-22 | 0.0090 | 75190
2017-07-23 | 0.0092 | 76404
2017-07-24 | 0.0097 | 80436
2017-07-25 | 0.0089 | 74077
2017-07-26 | 0.0107 | 90016
2017-07-27 | 0.0116 | 98836
2017-07-28 | 0.0123 | 105627
2017-07-29 | 0.0130 | 111996
2017-07-30 | 0.0102 | 88276
2017-07-31 | 0.0105 | 90810
2017-08-01 | 0.0104 | 90224
2017-08-02 | 0.0111 | 95151
2017-08-03 | 0.0133 | 111631
2017-08-04 | 0.0141 | 117777
2017-08-05 | 0.0140 | 116554
2017-08-06 | 0.0138 | 114983
2017-08-07 | 0.0141 | 117224
2017-08-08 | 0.0236 | 197230
2017-08-09 | 0.0263 | 219541
2017-08-10 | 0.0201 | 167533
2017-08-11 | 0.0135 | 112647
2017-08-12 | 0.0134 | 111610
2017-08-13 | 0.0132 | 109669
2017-08-14 | 0.0135 | 112353
2017-08-15 | 0.0133 | 110440
2017-08-16 | 0.0135 | 112318
2017-08-17 | 0.0137 | 113774
2017-08-18 | 0.0137 | 114170
2017-08-19 | 0.0135 | 112308
2017-08-20 | 0.0135 | 112199
2017-08-21 | 0.0209 | 174509
2017-08-22 | 0.0259 | 216141
2017-08-23 | 0.0261 | 217762
2017-08-24 | 0.0261 | 218241
2017-08-25 | 0.0188 | 156277
2017-08-26 | 0.0116 | 95868
2017-08-27 | 0.0114 | 94131
2017-08-28 | 0.0117 | 97354
2017-08-29 | 0.0132 | 109936
2017-08-30 | 0.0129 | 107114
2017-08-31 | 0.0127 | 105745
2017-09-01 | 0.0129 | 107279
2017-09-02 | 0.0129 | 107393
2017-09-03 | 0.0130 | 107990
2017-09-04 | 0.0129 | 107114
2017-09-05 | 0.0129 | 107243
2017-09-06 | 0.0130 | 107961
2017-09-07 | 0.0132 | 110531
2017-09-08 | 0.0135 | 112999
2017-09-09 | 0.0127 | 105333
2017-09-10 | 0.0129 | 107633
2017-09-11 | 0.0129 | 107528
2017-09-12 | 0.0127 | 106062
2017-09-13 | 0.0137 | 113242
2017-09-14 | 0.0144 | 118361
2017-09-15 | 0.0139 | 115473
2017-09-16 | 0.0139 | 116693
2017-09-17 | 0.0137 | 114965
2017-09-18 | 0.0132 | 109553
2017-09-19 | 0.0130 | 108115
2017-09-20 | 0.0132 | 109527
2017-09-21 | 0.0126 | 105256
2017-09-22 | 0.0106 | 89476
2017-09-23 | 0.0101 | 86090
2017-09-24 | 0.0102 | 86409
2017-09-25 | 0.0100 | 85308
2017-09-26 | 0.0112 | 95383
2017-09-27 | 0.0125 | 105975
2017-09-28 | 0.0123 | 104265
2017-09-29 | 0.0126 | 106843
2017-09-30 | 0.0123 | 104706
2017-10-01 | 0.0123 | 104341
2017-10-02 | 0.0126 | 107052
2017-10-03 | 0.0124 | 105191
2017-10-04 | 0.0121 | 101801
2017-10-05 | 0.0148 | 121223
2017-10-06 | 0.0103 | 87346
2017-10-07 | 0.0100 | 85406
2017-10-08 | 0.0101 | 86041
2017-10-09 | 0.0104 | 88283
2017-10-10 | 0.0101 | 86233
2017-10-11 | 0.0102 | 86667
2017-10-12 | 0.0355 | 299018
2017-10-13 | 0.0228 | 192422
2017-10-14 | 0.0097 | 82731
2017-10-15 | 0.0098 | 83189
2017-10-16 | 0.0101 | 85226
2017-10-17 | 0.0099 | 84129
2017-10-18 | 0.0098 | 83347
2017-10-19 | 0.0119 | 100054
2017-10-20 | 0.0144 | 120283
2017-10-21 | 0.0134 | 112146
2017-10-22 | 0.0131 | 110371
2017-10-23 | 0.0133 | 111530
2017-10-24 | 0.0132 | 110994
2017-10-25 | 0.0136 | 113990
2017-10-26 | 0.0134 | 112655
2017-10-27 | 0.0142 | 119079
2017-10-28 | 0.0159 | 133383
2017-10-29 | 0.0155 | 130440
2017-10-30 | 0.0154 | 129253
2017-10-31 | 0.0153 | 128455
2017-11-01 | 0.0153 | 129466
2017-11-02 | 0.0121 | 105021
2017-11-03 | 0.0110 | 95986
2017-11-04 | 0.0110 | 96303
2017-11-05 | 0.0112 | 97838
2017-11-06 | 0.0113 | 98519
2017-11-07 | 0.0119 | 102876
2017-11-08 | 0.0123 | 105528
2017-11-09 | 0.0160 | 133546
2017-11-10 | 0.0157 | 131127
2017-11-11 | 0.0154 | 128856
2017-11-12 | 0.0152 | 127145
2017-11-13 | 0.0104 | 90504
2017-11-14 | 0.0115 | 99509
2017-11-15 | 0.0110 | 95609
2017-11-16 | 0.0114 | 99106
2017-11-17 | 0.0106 | 91958
2017-11-18 | 0.0104 | 90489
2017-11-19 | 0.0104 | 90581
2017-11-20 | 0.0114 | 98003
2017-11-21 | 0.0113 | 97598
2017-11-22 | 0.0106 | 91983
2017-11-23 | 0.0106 | 91459
2017-11-24 | 0.0106 | 92203
2017-11-25 | 0.0106 | 91973
2017-11-26 | 0.0106 | 91855
2017-11-27 | 0.0111 | 95992
2017-11-28 | 0.0113 | 96942
2017-11-29 | 0.0108 | 93468
2017-11-30 | 0.0109 | 94030
2017-12-01 | 0.0109 | 94083
2017-12-02 | 0.0108 | 93161
2017-12-03 | 0.0107 | 92818
2017-12-04 | 0.0108 | 93090
2017-12-05 | 0.0122 | 104723
2017-12-06 | 0.0127 | 108486
2017-12-07 | 0.0169 | 141229
2017-12-08 | 0.0148 | 124621
2017-12-09 | 0.0144 | 120795
2017-12-10 | 0.0156 | 130057
2017-12-11 | 0.0395 | 313660
2017-12-12 | 0.0135 | 114608
2017-12-13 | 0.0151 | 126578
2017-12-14 | 0.0111 | 95444
2017-12-15 | 0.0110 | 94634
2017-12-16 | 0.0111 | 95651
2017-12-17 | 0.0110 | 95260
2017-12-18 | 0.0110 | 95257
2017-12-19 | 0.0116 | 99924
2017-12-20 | 0.0121 | 103585
2017-12-21 | 0.0118 | 100724
2017-12-22 | 0.0126 | 107359
2017-12-23 | 0.0119 | 101723
2017-12-24 | 0.0131 | 111239
2017-12-25 | 0.0165 | 136981
2017-12-26 | 0.0127 | 108389
2017-12-27 | 0.0182 | 150211
2017-12-28 | 0.0303 | 242387
2017-12-29 | 0.0391 | 310032
2017-12-30 | 0.0399 | 316309
2017-12-31 | 0.0398 | 315644
2018-01-01 | 0.0399 | 316393
2018-01-02 | 0.0346 | 275426
2018-01-03 | 0.0117 | 99111
2018-01-04 | 0.0137 | 113411
2018-01-05 | 0.0128 | 106548
2018-01-06 | 0.0134 | 111224
2018-01-07 | 0.0166 | 135638
2018-01-08 | 0.0125 | 104377
2018-01-09 | 0.0111 | 94906
2018-01-10 | 0.0144 | 121743
fw.log | 0.0136 | 114434
fwui.log | 0.0000 | 2466
profile | 0.0000 | 24

================================================== ============
[Expert@p1-mc:0]#

jflemingeds
2018-01-11, 18:57
ok strange.. it worked using this input. I'm going to post a few more changes. I think its hitting the exit.

This alpha script is really coming along with all these bug reports! It might even get useful.

jflemingeds
2018-01-11, 18:58
new version posted.

try running it from the same dir maybe?

cd /etc/scripts/
bash script.sh

cciesec2006
2018-01-12, 07:23
new version posted.

try running it from the same dir maybe?

cd /etc/scripts/
bash script.sh

[Expert@p1:0]# /etc/scripts/logs
Working on cma-10.109.114.12
For CMA cma-10.109.114.12
Highest logs per day 11143
Logs Avg Per Sec 0
Highest gigbytes day 0.0010
Working on cma-10.109.114.17
For CMA cma-10.109.114.17
Highest logs per day 13101
Logs Avg Per Sec 0
Highest gigbytes day 0.0012
Working on cma-10.109.114.23
For CMA cma-10.109.114.23
Highest logs per day 316393
Logs Avg Per Sec 3
Highest gigbytes day 0.0399
Working on cma-10.109.114.44
For CMA cma-10.109.114.44
Highest logs per day 200731
Logs Avg Per Sec 2
Highest gigbytes day 0.0142

For hostname: p1
Highest Daily logs per day across all CMAs: 541,368
Highest average logs per second across all CMAs: 6
Highest log file size per day across all CMAs: 0.0563 GBs

[Expert@p1:0]#

jflemingeds
2018-01-12, 11:49
hurray.. 5th times a charm.