title: Pattern not match error in fluentd while tailing json file
body: <p>I have installed fluentd logger and I want it to monitor the logs of my python code. The logs are the json logs and looks like below:</p>
  
  <pre><code>{
      "FileNo": 232,
      "FileClass": "timitry",
      "FileLevel": "24",
      "DataCount": 5,
      "Data": {
          "User1": &lt;Username&gt;,
          "User2": &lt;Username&gt;,
          "User3": &lt;Username&gt;,
          "User4": &lt;Username&gt;,
          "User5": &lt;Username&gt;"
      },
      "time": "2018-05-14T05:33:02.071793"
  }
  </code></pre>
  
  <p>This is updated every 5mins. I need to write a fluentd input plugin for it so that it can read the new json data and the publish it to <code>elastic search</code>. I dont really know which input plugin to use here but I used <code>tail</code> which give me below errors:</p>
  
  <pre><code>2018-05-14 05:31:04 +0000 [warn]: #0 pattern not match: "    \"FileClass\": \"timitry\","
  </code></pre>
  
  <p>This is same for all the data. Can anyone please suggest me how can I resolve this issue. Below is the configuration file:</p>
  
  <pre><code>&lt;source&gt;
    @type tail
    format json
    path /home/user/Documents/logs/file_log.json
    tag first
  &lt;/source&gt;
  
  &lt;match first*&gt;
    @type elasticsearch
    hosts 192.168.111.456:9200
    user &lt;username&gt;
    password &lt;password&gt;
  &lt;/match&gt;
  </code></pre>
  
  <p>I have seen others using <code>regex</code> and other formats. Do I also need to use it. How can I use the logs generated by python code to be used by fluentd and publish it to <code>elastic search</code>.</p>
  
  <p>Thanks</p>