I have a log with lines like this:
Jun 21 06:25:07 172.25.1.1 kernel: DROP IN=ppp0 OUT= MAC= SRC=206.221.177.2 DST=185.79.95.179 LEN=40 TOS=0x00 PREC=0x00 TTL=239 ID=25584 PROTO=TCP SPT=40001 DPT=58571 SEQ=1145952392 ACK=0 WINDOW=1024 RES=0x00 SYN URGP=0
I'd like to extract some information from it: the date, the source IP etc.
With a regexp I can do it (in python or perl): '^(... ..) .* DROP .* SRC=(\S+)'
But how can I do this in Lua?