java.lang.OutOfMemoryError: Java heap space error in logstash conf file

hey, I'm facing this issue while importing logs in kibana using conf file.

[2020-05-23T13:55:37,084][ERROR][org.logstash.Logstash ] java.lang.OutOfMemoryError: Java heap space

and my conf file :

input {
file{
path => "/home/elk/Desktop/testing/Logs.csv"
start_position => "beginning"
sincedb_path => "/dev/null/"
}
}
filter{
csv{
separator => ","
columns => ["Time","Blade","Severity","Action","Source","User",,"Service","ID"]
}
}
output {
elasticsearch {
hosts => "localhost:9200"
index => "indextesting"
}
stdout{}
}

Hi,

Looks like the jvm where logstash excecutes has not enough memory assigned to it. What are the values of your total memory in the system and the memory assigned to logstash jvm (/eyc/logstash/jvm.options). What other applications are you running in that machine along side LS?

Thank You @pup_seba.
solved my error by increase memory in JVM.

1 Like

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