title: Error: Expected one of #, input, filter, output at line 34, column 1 (byte 1) after {:level=>:error} in logstash
body: <p>Hi i am trying to setup ELK server for log management . My  logstash service is running fine .I am receiving logs from other machine but logstash pipeline is not able to send data to elastic search<br>
  When i look at the logstash .log file it shows this error
  I am not able to identify the error in my configuration file </p>
  
  <pre><code>:message=&gt;"Error: Expected one of #, input, filter, output at line 34, column 1 (byte 855) after ", :level=&gt;:error}
  </code></pre>
  
  <p>my logstash/conf.d </p>
  
  <pre><code>input {
  beats {
  port =&gt; 5044
  ssl =&gt; true
  ssl_certificate =&gt; "/etc/pki/tls/certs/logstash-forwarder.crt"
  ssl_key =&gt; "/etc/pki/tls/private/logstash-forwarder.key"
  }
  }
  filter {
  if [type] == "syslog" {
  grok {
    match =&gt; { "message" =&gt; "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:\[%{POSINT:syslog_pid}\])?: %{GREEDYDATA:syslog_message}" }
    add_field =&gt; [ "received_at", "%{@timestamp}" ]
    add_field =&gt; [ "received_from", "%{host}" ]
  }
      syslog_pri { }
      date {
    match =&gt; [ "syslog_timestamp", "MMM  d HH:mm:ss", "MMM dd HH:mm:ss" ]
  }
  }
  }
  output {
  elasticsearch {
  hosts =&gt; ["localhost:9200"]
  sniffing =&gt; true
  manage_template =&gt; false
  index =&gt; "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
  document_type =&gt; "%{[@metadata][type]}"
  }
  }
  {
  "mappings": {
  "_default_": {
    "_all": {
      "enabled": true,
      "norms": {
        "enabled": false
      }
    },
    "dynamic_templates": [
      {
        "template1": {
          "mapping": {
            "doc_values": true,
            "ignore_above": 1024,
            "index": "not_analyzed",
            "type": "{dynamic_type}"
          },
    "match": "*"
        }
      }
    ],
    "properties": {
      "@timestamp": {
        "type": "date"
      },
      "message": {
        "type": "string",
        "index": "analyzed"
      },
      "offset": {
        "type": "long",
        "doc_values": "true"
      },
      "geoip"  : {
        "type" : "object",
        "dynamic": true,
        "properties" : {
          "location" : { "type" : "geo_point" }
        }
      }
    }
  }
  },
  "settings": {
  "index.refresh_interval": "5s"
   },
  "template": "filebeat-*"
  }
  </code></pre>