title: Regex code to parse full Iptables log Python
body: <p>I have this string bellow on iptables logs, i want parse full content.
  My actual regex parse 90% but i need the all content logs.</p>
  
  <p>My python regex:</p>
  
  <pre><code>regex = re.compile('([^ ]+)=([^ ]+)')
  </code></pre>
  
  <p>I need this parameters too:</p>
  
  <pre><code>Aug 13 17:16:33 app-srv01 kernel: newConnection -
  </code></pre>
  
  <p>Regex Result:</p>
  
  <pre><code>[('IN', 'eth0'), ('MAC', '56:00:01:a1:5c:b7:fe:00:01:a1:5c:b7:08:00'), ('SRC', '91.103.125.80'), ('DST', '45.33.223.166'), ('LEN', '52'), ('TOS', '0x00'), ('PREC', '0x00'), ('TTL', '113'), ('ID', '21200'), ('PROTO', 'TCP'), ('SPT', '55743'), ('DPT', '445'), ('WINDOW', '8192'), ('RES', '0x00'), ('URGP', '0')] 
  </code></pre>
  
  <p>Log String:</p>
  
  <blockquote>
    <p>Aug 13 17:16:33 app-srv01 kernel: newConnection - IN=eth0 OUT=
    MAC=56:00:01:a1:5c:b7:fe:00:01:a1:5c:b7:08:00 SRC=91.103.125.80
    DST=45.33.223.166 LEN=52 TOS=0x00 PREC=0x00 TTL=113 ID=21200 DF
    PROTO=TCP SPT=55743 DPT=445 WINDOW=8192 RES=0x00 SYN URGP=0</p>
  </blockquote>
  
  <p>Output expected:</p>
  
  <pre><code>[('Aug 13 17:16:33'), ('app-srv01 kernel:'), ('newConnection -'), 
  ('IN', 'eth0'), ('MAC', '56:00:01:a1:5c:b7:fe:00:01:a1:5c:b7:08:00'), ('SRC', 
  '91.103.125.80'), ('DST', '45.33.223.166'), ('LEN', '52'), ('TOS', '0x00'), ('PREC', 
  '0x00'), ('TTL', '113'), ('ID', '21200'), ('PROTO', 'TCP'), ('SPT', '55743'), ('DPT', 
  '445'), ('WINDOW', '8192'), ('RES', '0x00'), ('URGP', '0')] 
  </code></pre>
  
  <p>Some can help. I'm using python3 Thanks</p>