# Logstash 2.0.0 Running Out of Memory

**URL:** <https://discuss.elastic.co/t/logstash-2-0-0-running-out-of-memory/34846>\
**Category:** Logstash\
**Created:** [November 17, 2015, 8:26pm UTC](https://discuss.elastic.co/t/logstash-2-0-0-running-out-of-memory/34846 "2015-11-17T20:26:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hiranya911](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@hiranya911](https://discuss.elastic.co/u/hiranya911)\
**Post date:** [November 17, 2015, 8:26pm UTC](https://discuss.elastic.co/t/logstash-2-0-0-running-out-of-memory/34846/1 "2015-11-17T20:26:46Z")

</div>

I'm using Logstash 2.0.0 to parse and index some Nginx access logs received through remote FileBeat. My configuration is very simple (shown below). But every now and then Logstash runs out of memory and crashes. It seems to happen every 24 hours or so. I've seen several similar reports here and elsewhere, but with no specific workaround mentioned. Any thoughts on what I can try to get this sorted out?

input {  
beats {  
port =\> 5044  
}  
}

filter {  
grok {  
patterns\_dir =\> "./patterns"  
match =\> { "message" =\> "%{NGINX\_ACCESS\_LOG}" }  
}  
date {  
match =\> ["timestamp", "dd/MMM/yyyy:HH:mm:ss Z"]  
target =\> "@timestamp"  
}  
}

output {  
elasticsearch {  
hosts =\> "localhost:9200"  
sniffing =\> true  
manage\_template =\> false  
index =\> "nginx"  
document\_type =\> "%{[@metadata][type]}"  
}  
stdout {}  
}

---

<div class="post-metadata">

**Author:** ![hiranya911](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@hiranya911](https://discuss.elastic.co/u/hiranya911)\
**Post date:** [November 27, 2015, 8:12am UTC](https://discuss.elastic.co/t/logstash-2-0-0-running-out-of-memory/34846/2 "2015-11-27T08:12:08Z")

</div>

Unfortunately this problem keeps happening. Is this a bug in the latest Logstash?

---

<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:** [July 6, 2017, 5:21am UTC](https://discuss.elastic.co/t/logstash-2-0-0-running-out-of-memory/34846/3 "2017-07-06T05:21:02Z")

</div>


