title: Store mixed data-type in ElasticSearch
body: <p>I am using logstash to manage my application logs. I want to store some context data along with the log entries. These context data doesn't have to be indexed. But it can have can have different structure/data type depending on the application context. For example, the context can be in any of the following formats</p>
  
  <h3>String</h3>
  
  <pre><code>{
      error: "This is a sample error message"
  }
  </code></pre>
  
  <h3>Array</h3>
  
  <pre><code>{
      error: [
          "This is an error message", 
          "This is another message", 
          "This is the final message"
      ]
  }
  </code></pre>
  
  <h3>Or it could be an object</h3>
  
  <pre><code>{
      error: {
          user_name: "Username cannot be empty",
          user_email: "Email address is already in use",
          user_password: "Passwords do not match"
      }
  }
  </code></pre>
  
  <p>Is it possible to have such a field in ElasticSearch? The field does not have to be indexed, it just needs to be stored.</p>