# Reading blogs.csv from engineer course

**URL:** <https://discuss.elastic.co/t/reading-blogs-csv-from-engineer-course/151437>\
**Category:** Elastic Training\
**Created:** [October 8, 2018, 10:53am UTC](https://discuss.elastic.co/t/reading-blogs-csv-from-engineer-course/151437 "2018-10-08T10:53:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gfkjgi](https://avatars.discourse-cdn.com/v4/letter/g/e9a140/32.png) [@gfkjgi](https://discuss.elastic.co/u/gfkjgi)\
**Post date:** [October 8, 2018, 10:53am UTC](https://discuss.elastic.co/t/reading-blogs-csv-from-engineer-course/151437/1 "2018-10-08T10:53:32Z")

</div>

A couple of weeks ago I did the ES Engineer I course and during that course you are given a lab and datasets. Now I like to reproduce these labs at home but I just can't figure out how to read the `blogs.csv` file looking at `blogs_csv.conf` it's expecting the file at `stdin` but how do I get the contents of the CSV file there?

---

<div class="post-metadata">

**Author:** ![raposa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raposa/32/11906_2.png) [@raposa](https://discuss.elastic.co/u/raposa)\
**Post date:** [October 8, 2018, 11:18am UTC](https://discuss.elastic.co/t/reading-blogs-csv-from-engineer-course/151437/2 "2018-10-08T11:18:52Z")

</div>

The command would look something like this (on Mac or Linux):

```auto
cat blogs.csv | logstash-6.x.x/bin/logstash -f blogs_csv.conf

```

where `logstash-6.x.x` is the folder where you have Logstash unzipped.

---

<div class="post-metadata">

**Author:** ![gfkjgi](https://avatars.discourse-cdn.com/v4/letter/g/e9a140/32.png) [@gfkjgi](https://discuss.elastic.co/u/gfkjgi)\
**Post date:** [October 8, 2018, 12:26pm UTC](https://discuss.elastic.co/t/reading-blogs-csv-from-engineer-course/151437/3 "2018-10-08T12:26:15Z")

</div>

Yes, that did the trick! Thank you very much Rich.

---

<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:** [November 7, 2018, 12:33pm UTC](https://discuss.elastic.co/t/reading-blogs-csv-from-engineer-course/151437/4 "2018-11-07T12:33:06Z")

</div>

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