title: Logstash reads data from stdin but not from file
body: <p>I have a JSON log file with only one line in it:</p>
  
  <pre><code>{"@timestamp":"2016-06-02T13:56:49.235+00:00","thread_name":"qtp485047320-228","level":"ERROR","host":"domain.com","class":"MyClass","url":"/my-url","ip":"12.122.122.122","message":"Exception caught by exception handler.","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36","stacktrace":"com.test.exceptions.NotFoundException: NotFoundException for parameter [12345678-1234]. Message: url was not found by service.]"}
  </code></pre>
  
  <p>And this is my logstash.conf file:</p>
  
  <pre><code>input {
       # stdin {}
      file {
        path =&gt; "/Users/me/Applications/logstash-2.3.1/examples/json_input.1.log"
        start_position =&gt; "beginning"
      }
  }
  filter {
  
      json{
          source =&gt; "message"
      }
  
      geoip {
          source =&gt; "ip"
          target =&gt; "geoip"
      }
  }
  output {
      stdout { 
          codec =&gt; rubydebug 
      }
      elasticsearch { 
          hosts =&gt; ["localhost:9200"]
          index =&gt; "logstash-app-errors"
      }
  }
  </code></pre>
  
  <p>As you can see, at the input section I used stdin (in comment now) and later on, I changed to read the data from file.<br />
  The problem is that when I use the stdin and paste the json data (1 line) everything works great and I see the data in elasticSearch, but when I change it to file, nothing happens...<br />
  I also added <code>--debug</code> param to logstash execution command <code>./logstash agent -f logstash.conf --debug</code> but couldn't see anything suspicious in debug output.<br /><br />
  What am I missing?</p>