I try to parse this log into pandas dataframe. I need to use regex to parse this log to a list/dataframe with python, thanks
127.0.0.1 - - [05/Feb/2012:17:11:55 +0000] "GET / HTTP/1.1" 200 140 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.5 Safari/535.19"
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
This log is from Understanding Apache's access log
I have tried with splits and for loops but it is wierd. regex would be more efficient, do you know if it is possible and how ?
node = re.search(regex, log_line).group(1)
node = node.split(" ")
print(node)