# Logstash Config File Error: type 'string'

**URL:** <https://discuss.elastic.co/t/logstash-config-file-error-type-string/158915>\
**Category:** Logstash\
**Created:** [November 30, 2018, 2:33pm UTC](https://discuss.elastic.co/t/logstash-config-file-error-type-string/158915 "2018-11-30T14:33:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![victorhearnyeates](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/victorhearnyeates/32/37345_2.png) [@victorhearnyeates](https://discuss.elastic.co/u/victorhearnyeates)\
**Post date:** [November 30, 2018, 2:33pm UTC](https://discuss.elastic.co/t/logstash-config-file-error-type-string/158915/1 "2018-11-30T14:33:10Z")

</div>

Hi,

I'm currently trying to ingest a CSV file containing blogposts, and I'm getting the error

`Exiting: error loading config file: type 'string' is not supported on top level of config, only dictionary or list (source:'datasets/blogs_csv.conf')`

This is my config file:

```auto
input {
        stdin{}
}

filter {
  csv {
    seperator => ";"
  }
  dissect {
    mapping => {
      message => "%{title};%{seo_title};%{url};%{author};%{date};%{category};%{locales};%{content}"
    }
  }
  date {
    match => ["date", "MMMM dd, yyyy"]
    target => "publish_date"
    remove_field => ["date"]
  }
  mutate {
    remove_field => ["@version", "path", "host", "message", "tags", "@timestamp"]
  }
}

output {
  stdout { codec => "dots"}
  elasticsearch {
    index => "blogs"
    document_type => "_doc"
  }
}

```

Anyone have any ideas?

Thanks

---

<div class="post-metadata">

**Author:** ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)\
**Post date:** [November 30, 2018, 5:50pm UTC](https://discuss.elastic.co/t/logstash-config-file-error-type-string/158915/2 "2018-11-30T17:50:49Z")

</div>

I'm not seeing that error message defined in Logstash core source, but I do see that you may have a typo; `seperator` should be `separator`.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 28, 2018, 5:50pm UTC](https://discuss.elastic.co/t/logstash-config-file-error-type-string/158915/3 "2018-12-28T17:50:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
