title: Kibana Not Showing Any Logs (ELK Stack)
body: <p>I am learning ELK stack. So I have written a sample java code that churns out some log line in a file. I am trying to see if the log lines show up in Kibana UI. So I will try to explain it to best of my abilities about what I did. So first I start elasticsearch, then logstash, then kibana.</p>
  <p>My logstash config file looks like:</p>
  <pre><code>input {
      file {
      type =&gt; &quot;java&quot;
      path =&gt; &quot;C:/temp/logs/application.log&quot;
      codec =&gt; multiline {
          pattern =&gt; &quot;^%{MONTHDAY}/%{MONTHNUM}/%{YEAR} %{TIME}.*&quot;
          negate =&gt; &quot;true&quot;
          what =&gt; &quot;previous&quot;
      }
    }
  }
  
  filter {
  
      grok {  
          match =&gt; { &quot;message&quot; =&gt; &quot;%{DATE_EU:date} %{TIME:time} %{ISO8601_TIMEZONE:zone} \[%{LOGLEVEL:loglevel}.*] \[%{DATA:thread}] %{DATA:class} - %{GREEDYDATA:message}&quot; }
          add_tag =&gt; [ &quot;log&quot; ]
      }
  }
  
  output {
      
      stdout {
          codec =&gt; rubydebug
      }
      
      # Sending properly parsed log events to elasticsearch
      elasticsearch {
          hosts =&gt; [&quot;localhost:9200&quot;]
      }
  }
  </code></pre>
  <p>The logs that are in the log file look like this:</p>
  <pre><code>    07/06/2022 14:37:41.471 +0530 [ERROR] [main] com.cmt.ncaas.logging.LoggingTrial - Trying to log an error
  07/06/2022 14:37:41.471 +0530 [DEBUG] [main] com.cmt.ncaas.logging.LoggingTrial - Trying to log an debug
  07/06/2022 14:37:41.471 +0530 [TRACE] [main] com.cmt.ncaas.logging.LoggingTrial - Trying to log an trace
  07/06/2022 14:37:41.471 +0530 [WARN ] [main] com.cmt.ncaas.logging.LoggingTrial - Trying to log an warn
  07/06/2022 14:37:41.471 +0530 [ERROR] [main] com.cmt.ncaas.logging.LoggingTrial - Exception occured: 
  java.lang.ArithmeticException: / by zero
      at com.cmt.ncaas.logging.LoggingTrial.exceptionLogging(LoggingTrial.java:39)
      at com.cmt.ncaas.logging.LoggingTrial.main(LoggingTrial.java:32)
  </code></pre>
  <p>After this I created an index template with pattern <code>logs-*</code>. But I dont see anything show up in Kibana.</p>
  <p>Can you please tell me where I am going wrong. I suspect it is the input section that is messing it up. But being so new, I am not sure what I could change.</p>
  <p>Any pointers, i much appreciated. Thanks in advance.</p>