The logstash-agent is consuming more than 100% of CPU in our nodes. Is there any solution to fix this issue .
The logstash-agent.conf is as follows
input {
file {
type => "hybris_console"
add_field => { "environment" => "PROD" }
add_field => { "application" => "hybris" }
path => [ "<path_of_logfile>-" ]
codec => multiline {
pattern => "(.+|.+|.+|.+|[ ]{3}.)|(.+|.+|.+|.+| ])|(.+|.+|.+|.+| SEVERE)|(.+|.+|.+|.+| de.hybris.platform)|(.+|.+|.+|.+| java.lang.NullPointerException)|(.+|.+|.+|.+|[ ]\t.)|(.+|.+|.+|.+|[ ]{9}.)"
negate => false
what => "previous"
charset => "UTF-8"
}
}
}
output {
stdout { }
redis {
host => ""
data_type => "list"
key => "logstash"
}
}
*********************************`