# Setting Up Logstash In Docker-Compose For Bulk Ingest Of CSV Files In Local Machine

**URL:** https://discuss.elastic.co/t/setting-up-logstash-in-docker-compose-for-bulk-ingest-of-csv-files-in-local-machine/346916
**Category:** Logstash
**Tags:** docker
**Created:** [November 11, 2023, 5:16pm UTC](https://discuss.elastic.co/t/setting-up-logstash-in-docker-compose-for-bulk-ingest-of-csv-files-in-local-machine/346916 "2023-11-11T17:16:21Z")
**Posts on this page:** 1
**Showing post:** 112

<div class="post-metadata">

### Author: ![Ethan777100](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ethan777100/32/70366_2.png) [@Ethan777100](https://discuss.elastic.co/u/Ethan777100)
#### Post date: [November 23, 2023, 5:01pm UTC](https://discuss.elastic.co/t/setting-up-logstash-in-docker-compose-for-bulk-ingest-of-csv-files-in-local-machine/346916/112 "2023-11-23T17:01:40Z")

</div>

I found this from [CSV Filter - Quote character causing \_csvparsefailure - Elastic Stack / Logstash - Discuss the Elastic Stack](https://discuss.elastic.co/t/csv-filter-quote-character-causing-csvparsefailure/121273)

[Mutate filter plugin | Logstash Reference [8.11] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-filters-mutate.html)

Here is my improvising in my use-case.

I wrote this in logstash config. `"graphicelement"` is where I have the` \r` and I replace it with nothing hence `""`.

```auto
input { 
    file { 
        path => "/usr/share/logstash/ats-logs-mainline/2023/01-Jan-23/formatted_events2023-01-01.csv"
        start_position => "beginning" 
    } 
    mutate {
            gsub => ["graphicelement", "\r", ""]
       }
}

```

Oh no I need help to install my mutate filter plugin. I'm not sure how to do it I just read the readme. My use case is within docker environment.

---

_[View the full topic](https://discuss.elastic.co/t/setting-up-logstash-in-docker-compose-for-bulk-ingest-of-csv-files-in-local-machine/346916)._
