title: Kibana Logstash ElasticSearch | Unindexed fields cannot be searched
body: <p>I am exploring ELK stack and coming across an issue.</p>
  <p>I have generated logs, forwarded the logs to logstash, logs are in JSON format so they are pushed directly into ES with only JSON filter in Logstash config, connected and started Kibana pointing to the ES.</p>
  <p>Logstash Config:</p>
  <pre><code> filter {
    json {
      source =&gt; &quot;message&quot;
    }
  </code></pre>
  <p>Now I have indexes created for each day's log and Kibana happily shows all of the logs from all indexes.</p>
  <p>My issue is: there are many fields in logs which are not enabled/indexed for filtering in Kibana. When I try to add them to the filer in Kibana, it says <strong>&quot;unindexed fields cannot be searched&quot;</strong>.</p>
  <p>Note: these are not sys/apache log. There are custom logs in JSON format.</p>
  <p>Log format:</p>
  <pre><code>{&quot;message&quot;:&quot;ResponseDetails&quot;,&quot;@version&quot;:&quot;1&quot;,&quot;@timestamp&quot;:&quot;2015-05-23T03:18:51.782Z&quot;,&quot;type&quot;:&quot;myGateway&quot;,&quot;file&quot;:&quot;/tmp/myGatewayy.logstash&quot;,&quot;host&quot;:&quot;localhost&quot;,&quot;offset&quot;:&quot;1072&quot;,&quot;data&quot;:&quot;text/javascript&quot;,&quot;statusCode&quot;:200,&quot;correlationId&quot;:&quot;a017db4ebf411edd3a79c6f86a3c0c2f&quot;,&quot;docType&quot;:&quot;myGateway&quot;,&quot;level&quot;:&quot;info&quot;,&quot;timestamp&quot;:&quot;2015-05-23T03:15:58.796Z&quot;}
  </code></pre>
  <p>fields like 'statusCode', 'correlationId' are not getting indexed. Any reason why?</p>
  <p>Do I need to give a Mapping file to ES to ask it to index either all or given fields?</p>