Getting an error while running the logstash email output plugin - Unknown Garbage collector name- "G1 -Concurrent GC"

I Have configured Logstash 7.17.3 and Heart beats 7.17.3. I am trying to send an email alert , if the url returns a code 401 .

I have configured the email output plugin. While running the logstash i get this error.

[2023-08-04T17:50:22,434][ERROR][logstash.instrument.periodicpoller.jvm] Unknown garbage collector name {:name=>"G1 Concurrent GC"}
[2023-08-04T17:50:27,475][ERROR][logstash.instrument.periodicpoller.jvm] Unknown garbage collector name {:name=>"G1 Concurrent GC"}

Any help on this topic

If you are using the bundled JDK then that is probably a bug. Otherwise it is just how things work. logstash wants to collect information about the garbage collector, since it is useful performance information, but it does not know about every GC algorithm. For example, if I add


to /etc/logstash/jvm.options then the JVM will run Shenandoah, but logstash will log

[2023-08-04T10:35:40,026][ERROR][logstash.instrument.periodicpoller.jvm] Unknown garbage collector name {:name=>"Shenandoah Pauses"}
[2023-08-04T10:35:40,028][ERROR][logstash.instrument.periodicpoller.jvm] Unknown garbage collector name {:name=>"Shenandoah Cycles"}

every five seconds. It just is. curl -XGET 'localhost:9600/_node/jvm?pretty' works just fine. Not sure if stack monitoring includes detailed GC information anywhere. If it does then it will probably be missing.

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