title: How do I use log parser(logpai) on Linux logs
body: <p>I'm using <a href="https://github.com/logpai/logparser" rel="nofollow noreferrer">LogPai</a> logparser  to parse unstructured logs into a csv file for my project right now and I can't figure out how to parse Linux logs properly.
  Their demo on the github shows how to parse HDFS logs, and I was trying to infer on how to parse linux logs from it. I've read the docs to check if they show this anywhere but unfortunately not.</p>
  
  <p>My current problem is that the logformat has the Component and PID right next to each other, so when I parse it, the csv file fucks up the labeling. Plus the Pid is in [] which is another thing I'm not sure on how to check for.</p>
  
  <p>I've tried using this log_format</p>
  
  <pre><code>log_format = '&lt;Month&gt; &lt;Date&gt; &lt;Time&gt; &lt;Level&gt; &lt;Component&gt;&lt;Pid&gt;: &lt;Content&gt;' 
  </code></pre>
  
  <p>which managed to get me very close, however, now it puts both the component and the pid into the PID column, thus leaving the component column empty. Any idea how I can fix this if there is anyone using LogPAI on here?</p>