title: How to view log in kibana
body: <p>I am new to ELK, I tried ELK Stack with springboot using net.logstash.logback.appender.LogstashTcpSocketAppender. I sent json messages to logstack. Below is my configuration - </p>
  
  <p><strong>logback-spring.xml</strong></p>
  
  <pre><code>&lt;configuration&gt;
      &lt;include resource="org/springframework/boot/logging/logback/defaults.xml" /&gt;
  ​   &lt;springProperty scope="context" name="springAppName" source="spring.application.name" /&gt;
  
      &lt;property name="LOG_FILE" value="./${springAppName}" /&gt;
  
  
      &lt;property name="CONSOLE_LOG_PATTERN"
          value="%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}" /&gt;
  
  
      &lt;appender name="logstash2"
          class="net.logstash.logback.appender.LogstashTcpSocketAppender"&gt;
          &lt;destination&gt;localhost:5000&lt;/destination&gt;
          &lt;encoder
              class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder"&gt;
              `
              &lt;providers&gt;
                  &lt;timestamp&gt;
                      &lt;timeZone&gt;UTC&lt;/timeZone&gt;
                  &lt;/timestamp&gt;
                  &lt;pattern&gt;
                      &lt;pattern&gt;
                          {
                          "severity": "%level",
                          "service": "${springAppName:-}",
                          "trace": "%X{X-B3-TraceId:-}",
                          "span": "%X{X-B3-SpanId:-}",
                          "parent": "%X{X-B3-ParentSpanId:-}",
                          "exportable":
                          "%X{X-Span-Export:-}",
                          "pid": "${PID:-}",
                          "thread": "%thread",
                          "class": "%logger{40}",
                          "rest": "%message"
                          }
                      &lt;/pattern&gt;
                  &lt;/pattern&gt;
              &lt;/providers&gt;
          &lt;/encoder&gt;
          &lt;keepAliveDuration&gt;5 minutes&lt;/keepAliveDuration&gt;
      &lt;/appender&gt;
      ​
      &lt;root level="INFO"&gt;
          &lt;appender-ref ref="logstash" /&gt;
      &lt;/root&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p><strong>config.json</strong></p>
  
  <pre><code>input{
      tcp{
          port=&gt; 5000
          host=&gt; localhost
      }
  }   
  
  filter {
         # pattern matching logback pattern
         grok {
                match =&gt; { "message" =&gt; "%{TIMESTAMP_ISO8601:timestamp}\s+%{LOGLEVEL:severity}\s+\[%{DATA:service},%{DATA:trace},%{DATA:span},%{DATA:exportable}\]\s+%{DATA:pid}\s+---\s+\[%{DATA:thread}\]\s+%{DATA:class}\s+:\s+%{GREEDYDATA:rest}" }
         }
  }
  
  output {
      elasticsearch { hosts =&gt; ["localhost:9200"] }
  }   
  </code></pre>
  
  <p>But when I open kibana to see the messages, I see whole log as message.
  like below-</p>
  
  <p><a href="https://i.stack.imgur.com/qEsmG.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qEsmG.jpg" alt="enter image description here"></a></p>
  
  <p>Can some one help me achieving the output as below - </p>
  
  <p><a href="https://i.stack.imgur.com/Bv5Ez.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bv5Ez.png" alt="enter image description here"></a></p>