How can I reduce Ram memory usage of logstash?


(yusuf) #1

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}"

}   

}


(system) closed #2

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