Thursday, 27 December 2018

Forward Logs to logstash over a socket

Standard
This is a sample configuration for forwarding logs to logstash over a socket with Springboot application //Add the properties file in classpath logstash.properties logstash.host=logstash-server logstash.port=5000 logstash.queue-size=512;     //Create Bean populated from logstash.properties file import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.ConfigurationProperties; import...