Reading log file and search for unnormal Requests in LOG file and IP's(also check cidr of asn for finding other ip related to unnormal detected ip)
Use the package manager pip to install ipaddr & ipwhois.
pip install ipaddr ipwhois
#'Change regex_keyword for finding keyword in every line of file '
regex_keyword='(?i)union' #dont change (?i) , its for not mentioning case sensitive in log file.just change union to everything u want.
logfile = 'apache.log' # address of file