diff --git a/apps/elasticsearch.go b/apps/elasticsearch.go index f6d9cb6ce0..4cb2366e82 100644 --- a/apps/elasticsearch.go +++ b/apps/elasticsearch.go @@ -19,7 +19,6 @@ import ( "fmt" "github.com/GoogleCloudPlatform/ops-agent/confgenerator" - "github.com/GoogleCloudPlatform/ops-agent/confgenerator/fluentbit" "github.com/GoogleCloudPlatform/ops-agent/confgenerator/otel" "github.com/GoogleCloudPlatform/ops-agent/internal/secret" ) @@ -255,39 +254,33 @@ func (p LoggingProcessorMacroElasticsearchJson) nestingProcessors() []confgenera return processors } -type LoggingProcessorElasticsearchGC struct { - confgenerator.ConfigComponent `yaml:",inline"` +type LoggingProcessorMacroElasticsearchGC struct { } -func (LoggingProcessorElasticsearchGC) Type() string { +func (LoggingProcessorMacroElasticsearchGC) Type() string { return "elasticsearch_gc" } -func (p LoggingProcessorElasticsearchGC) Components(ctx context.Context, tag, uid string) []fluentbit.Component { - c := []fluentbit.Component{} - - regexParser := confgenerator.LoggingProcessorParseRegex{ - // Sample log line: - // [2022-01-17T18:31:37.240+0000][652141][gc,start ] GC(0) Pause Young (Normal) (G1 Evacuation Pause) - Regex: `\[(?