I am looking for a way to only catch specific issues that occur after a certain threshold, over a given time frame.
e.g.
- My web applications uses a set of keys send over POST
- I am whitelisting the keys so I am only looking for specific keys within POST to be used by the application
- But, I want to keep track of any keys that are unusual and not part of my list
- But, I don't want to track each and every occurrence of a non-listed key - in case this is just a bot trying to get through
- But, once a specific non-listed key hits a threshold - say 100 times in a week - I want to log it.
How can I accomplish this using Perl, ideally with something like log4Perl?
Thank you!