title: Error: Expected one of #, input, filter, output at line 24, column 1 (byte 528) after "}
body: <p>I am able to run logstash as:</p>
  
  <pre><code>bin/logstash -f /etc/logstash/conf.d/config.json
  </code></pre>
  
  <p>but running logstash as a service </p>
  
  <pre><code>sudo service logstash start
  </code></pre>
  
  <p>is giving me the following error:</p>
  
  <pre><code>... Error: Expected one of #, input, filter, output at line 24, column 1 (byte 528) after "}
  </code></pre>
  
  <p>Not sure what I am doing wrong here? Configtest also says the config file is fine.</p>
  
  <pre><code>bin/logstash -f /etc/logstash/conf.d/config.json --configtest
  Configuration OK
  </code></pre>
  
  <p>Any help is appreciated.</p>
  
  <p>Thanks.</p>