title: Logstash not reading new log file
body: <p>I've setup both Elasticsearch &amp; Logstash in my system. What I'm trying to do is - scan all my log file (in XML format) &amp; send that to Elasticsearch.</p>
  
  <p>My Logstash Config file-</p>
  
  <pre><code>input {
      stdin { }
  
      file {
          type =&gt; "tweet"
          path =&gt; "/var/www/html/suresh/elasticsearch/product_logs/xml/*"
          sincedb_path =&gt; "/home/suresh/Desktop/tools/logstash-5.5.1/logs/test.sincedb"
          # ignore_older =&gt; 60
          # discover_interval =&gt; 5
          # start_position =&gt; "beginning"
  
          codec =&gt; multiline {
                              pattern =&gt;"^&lt;tweet&gt;"
                              negate =&gt; "true"
                              what =&gt; "previous"
                          }
      }
  }
  
  
  filter {
      xml {
          store_xml =&gt; "false"
          remove_namespaces =&gt; "true"
          source =&gt; "message"
  
          xpath =&gt; [
              "/tweet/user/text()", "user",
              "/tweet/post_date/text()", "post_date",
              "/tweet/message/text()", "tweet_message"
          ]
      }
  
      mutate {
          join =&gt; ["user", ""]
          join =&gt; ["post_date", ""]
          join =&gt; ["tweet_message", ""]
      }
  }
  
  
  output {
      elasticsearch {
          hosts =&gt; ["localhost:9200"]
          index =&gt; "twitter"
      }
  
      stdout { codec =&gt; rubydebug }
  
      file {
          path =&gt; "/home/suresh/Desktop/tools/logstash-5.5.1/logs/out.log"
      }
  }
  </code></pre>
  
  <p>My Sample log file(XML format)</p>
  
  <pre><code>&lt;tweet&gt;
    &lt;user&gt;Tweet1&lt;/user&gt;
    &lt;post_date&gt;2010-11-15T14:12:12&lt;/post_date&gt;
    &lt;message&gt;Playing with logstash-Log1&lt;/message&gt;
  &lt;/tweet&gt;
  </code></pre>
  
  <p>What happening is when I'm running my Logstash by the following command </p>
  
  <pre><code>sudo bin/logstash -f logstash-simple.conf
  </code></pre>
  
  <p>&amp; put any new XML file in my source folder Logstash is not detecting any file &amp; parsing that. But, the moment I'm shutting down Logstash by pressing <code>Ctr+C</code> it's detecting the XML file parsing that &amp; sends data to Elasticsearh before getting Shutdown.</p>
  
  <p>Don't know what's going wrong. Any insight!!!</p>