aboutsummaryrefslogtreecommitdiff
path: root/sysutils/amazon-cloudwatch-agent/files/patch-tool_processors_defaultConfig_defaultConfig.go
blob: 328ad9f880751a3cd4f97c76fe0c3a625a908dcf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- tool/processors/defaultConfig/defaultConfig.go.orig	2026-12-03 23:36:15 UTC
+++ tool/processors/defaultConfig/defaultConfig.go
@@ -35,7 +35,7 @@ func (p *processor) NextProcessor(ctx *runtime.Context
 		wantEC2AggregateDimensions(ctx)
 		metricsCollectInterval(ctx)
 	} else {
-		if ctx.OsParameter == util.OsTypeWindows {
+		if ctx.OsParameter == util.OsTypeWindows || ctx.OsParameter == util.OsTypeFreeBSD {
 			return logs.Processor
 		} else {
 			return linux.Processor
@@ -66,7 +66,7 @@ func (p *processor) NextProcessor(ctx *runtime.Context
 			log.Panicf("Unknown default config: %s", whichDefaultConfig)
 		}
 		if config.SatisfiedWithCurrentConfig(ctx) {
-			if ctx.OsParameter == util.OsTypeWindows {
+			if ctx.OsParameter == util.OsTypeWindows || ctx.OsParameter == util.OsTypeFreeBSD {
 				return logs.Processor
 			} else {
 				return linux.Processor