Platform: RHEL7
Situation:
- A JMeter report file is being appended with new results every 5 minutes by crontab script
- Another awk script looks for response time greater than 500ms and sends email alerts
Problem Statement:
- The requirement is to scan only newly added lines in the report file.
Presently, the awk script is reading the complete report every time
and sends alerts even for older events. awk -F "," '$4 != 200 || $14> 500' results.jtl - Good-to-Have if the awk script can read from the end of the file up to line read last time. This shall help in creating an alert for the latest event first.
Any suggestion shall be a great help.