feat: allow specifying a custom app label alias when shipping logs via vector
Closes #7354
This commit is contained in:
7 files changed
+146
-16
No files matched your search
@@ -72,7 +72,13 @@ func CommandSet(appName string, property string, value string) error {
|
||||
}
|
||||
|
||||
common.CommandPropertySet("logs", appName, property, value, DefaultProperties, GlobalProperties)
|
||||
if property == "vector-sink" {
|
||||
|
||||
vectorProperties := map[string]bool{
|
||||
"app-label-alias": true,
|
||||
"vector-sink": true,
|
||||
}
|
||||
|
||||
if _, ok := vectorProperties[property]; ok {
|
||||
common.LogVerboseQuiet(fmt.Sprintf("Writing updated vector config to %s", filepath.Join(common.GetDataDirectory("logs"), "vector.json")))
|
||||
return writeVectorConfig()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user