title: Logstash Merge Field With Root Object
body: <p>I have logstash input that looks like this</p>
  
  <pre><code>{
      "@timestamp": "2016-12-20T18:55:11.699Z",
      "id": 1234,
      "detail": {
          "foo": 1
          "bar": "two"
      }
  }
  </code></pre>
  
  <p>I would like to merge the content of <strong>"detail"</strong> with the root object so that the final event looks like this:</p>
  
  <pre><code>{
      "@timestamp": "2016-12-20T18:55:11.699Z",
      "id": 1234,
      "foo": 1
      "bar": "two"
  }
  </code></pre>
  
  <p>Is there a way to accomplish this without writing my own filter plugin?</p>