I am new to ELK stack. My configuration contains logstash-forwarder pushing my server logs to logstash residing in a seperate instance. But recently i found two issues.
- Logstash-forwarder is able to connect to logstash server but imediately throwing the error
Setting trusted CA from file: /path/to//logstash-forwarder.crt
2015/08/05 10:18:39.416031 Connecting to [x.x.x.x]:8140
2015/08/05 10:18:39.467751 Connected to x.x.x.x
2015/08/05 10:18:39.543006 Read error looking for ack: EOF
and the same log is repeated again and again
- My logstash server seems to be starting fine if i start it as a service but after sometime it stops abruptly. In Logstash.err log i see the following
Error: Your application used more memory than the safety cap of 500M.
Specify -J-Xmx####m to increase it (#### = cap size in MB).
Specify -w for full OutOfMemoryError stack trace
But i dont think my application is taking that much memory. Moreover the same configuration is working in other instances.
versions i am using are: 0.4.0 for logstash-forwarder and 1.4.2 for logstash.
please suggest any fix for this as i could find anything on the internet.
Thanks in advance.