title: logstash json filter not parsing fields getting _jsonparsefailure
body: <p>Hi I am trying to parse a json file. I have tried troubleshooting with suggestions from stackoverflow (links at bottom)but none have worked for me. I am hoping someone has some  insight on probably a silly mistake I am making.</p>
  
  <p>I have tried using only the json codec, only the json filter, as well as both. For some reason I am still getting this _jsonparsefailure.   What can I do to get this to work?</p>
  
  <p>Thanks in advance!</p>
  
  <p>My json file:</p>
  
  <pre><code>{
    "log": {
      "version": "1.2",
      "creator": {
        "name": "WebInspector",
        "version": "537.36"
      },
      "pages": [
        {
          "startedDateTime": "2015-10-13T20:28:46.081Z",
          "id": "page_1",
          "title": "https://demo.com",
          "pageTimings": {
            "onContentLoad": 377.8560000064317,
            "onLoad": 377.66200001351535
          }
        },
        {
          "startedDateTime": "2015-10-13T20:29:01.734Z",
          "id": "page_2",
          "title": "https://demo.com",
          "pageTimings": {
            "onContentLoad": 1444.0670000039972,
            "onLoad": 2279.20100002666
          }
        },
        {
          "startedDateTime": "2015-10-13T20:29:04.014Z",
          "id": "page_3",
          "title": "https://demo.com",
          "pageTimings": {
            "onContentLoad": 1802.0240000041667,
            "onLoad": 2242.4060000048485
          }
        },
        {
          "startedDateTime": "2015-10-13T20:29:09.224Z",
          "id": "page_4",
          "title": "https://demo.com",
          "pageTimings": {
            "onContentLoad": 274.82699998654425,
            "onLoad": 1453.034000005573
          }
        }
      ]
    }
  }
  </code></pre>
  
  <p>My logstash conf:</p>
  
  <pre><code>input {
      file {
         type =&gt; "json"
         path =&gt; "/Users/anonymous/Documents/demo.json"
         start_position =&gt; beginning
      }
  }
  
  filter{
      json{
          source =&gt; "message"
     }
  }
  
  
  output { 
    elasticsearch { host =&gt; localhost protocol =&gt; "http" port =&gt; "9200" } 
    stdout { codec =&gt; rubydebug } 
  }
  </code></pre>
  
  <p>Output I am getting from logstash hopefully with clues:</p>
  
  <pre><code>Trouble parsing json {:source=&gt;"message", :raw=&gt;"        \"startedDateTime\": \"2015-10-19T18:05:37.887Z\",", :exception=&gt;#&lt;TypeError: can't convert String into Hash&gt;, :level=&gt;:warn}
  {
         "message" =&gt; "      {",
        "@version" =&gt; "1",
      "@timestamp" =&gt; "2015-10-26T20:05:53.096Z",
            "host" =&gt; "15mbp-09796.local",
            "path" =&gt; "/Users/anonymous/Documents/demo.json",
            "type" =&gt; "json",
            "tags" =&gt; [
          [0] "_jsonparsefailure"
      ]
  }
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/18126835/decompose-logstash-json-message-into-fields">Decompose Logstash json message into fields</a></p>
  
  <p><a href="https://stackoverflow.com/questions/30542879/how-to-use-logstashs-json-filter">How to use logstash&#39;s json filter?</a></p>