I have the following logs:
- Taking a pg_dump
- pg_dump successful
- logging into cloud
- logged in successfully
- Uploading the backup
- Upload successful
I want to generate a logDNA alert if line 1 AND line 6 do not appear every one hour. (not worried about the rest of the lines)
I am aware that I can generate alerts if a specified number of alerts do not show up within some time interval. But wanted to understand can I generate it when a string/regex is missing!
Got it!! We can add in "query strings in the view" and then alert based on the number of lines... In my case, I filter line 1 AND line 6 and say alert if fewer than 2 lines appear in an hour.