title: Expected one of #, input, filter, output at line 2, column 1 (byte 2): Logstash
body: <p>I've been getting this weird error for some time now:</p>
  
  <blockquote>
    <p>Error: Expected one of #, input, filter, output at line 2, column 1 (byte 2) after</p>
  </blockquote>
  
  <h2>Configuration:</h2>
  
  <pre><code>input {
      stdin {}
      udp {
          type =&gt; "udp"
          port =&gt; "5959"
      }
      file {
          type =&gt; "syslog"
          path =&gt; "/var/log/messages"
      }
  }
  output {
      elasticsearch {
          host =&gt; localhost
      }
  }
  </code></pre>
  
  <h2>Command:</h2>
  
  <pre><code>bin/logstash -f logstash.conf
  </code></pre>
  
  <p>Thanks in Advance :)</p>