Search Results

Search: Posts Made By: nshah11
8,118
Posted By Chubler_XL
You could have your script "remember" the last...
You could have your script "remember" the last line examined in a file eg /srv/nginx_monitor/last_line

LAST_FILE=/srv/nginx_monitor/last_line

END_LINE=$(wc -l < access.log)
START_LINE=0

if...
8,118
Posted By MadeInGermany
START_LINE is the last END_LINE, so it is rather ...
START_LINE is the last END_LINE, so it is rather
(NR>S && $6 ~ /cloudservice/ && $10+0 > 1.0) {print $10, $6}' access.log
together with the first requirement.
8,118
Posted By Yoda
gawk '$6 ~ /cloudservice/ && $10+0 > 1.000 {...
gawk '$6 ~ /cloudservice/ && $10+0 > 1.000 { print $10, $6 }' access.log | mailx -s "Subject" user@domain.com
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 07:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy