# How can I reduce Ram memory usage of logstash?

**URL:** <https://discuss.elastic.co/t/how-can-i-reduce-ram-memory-usage-of-logstash/168544>\
**Category:** Logstash\
**Created:** [February 15, 2019, 8:15am UTC](https://discuss.elastic.co/t/how-can-i-reduce-ram-memory-usage-of-logstash/168544 "2019-02-15T08:15:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![programmerist](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@programmerist](https://discuss.elastic.co/u/programmerist)\
**Post date:** [February 15, 2019, 8:15am UTC](https://discuss.elastic.co/t/how-can-i-reduce-ram-memory-usage-of-logstash/168544/1 "2019-02-15T08:15:06Z")

</div>

I am looking for an answer for my logstash ram memory problem because it is nearly 100%. I made lots of search for it but they didn't work out for me. Below code is my logstash.cong file. I think it needs small touches.

Logstash.conf:

```
input {

```

file {  
path =\> ["c:/mylogs/\*.txt"]  
start\_position =\> "beginning"  
discover\_interval =\> 10  
stat\_interval =\> 10  
sincedb\_write\_interval =\> 10  
close\_older =\> 10  
codec =\> "json"  
}  
}

filter {

date {

```
    match => ["mydate","yyyy-MM-dd HH:mm:ss.SSSS"]
    timezone => "UTC"

```

}

date {  
match =\> ["TimeStamp", "ISO8601"]  
}  
json{  
source =\> "request"  
target =\> "parsedJson"

```
}   

```

}

output {

```
stdout {
    codec => rubydebug
}

elasticsearch {
    hosts => ["http://localhost:9200"]
     index => "log-%{+YYYY.MM}"

}   

```

}

---

<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:** [March 15, 2019, 8:15am UTC](https://discuss.elastic.co/t/how-can-i-reduce-ram-memory-usage-of-logstash/168544/2 "2019-03-15T08:15:07Z")

</div>

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