logforwarding

package
v1.2.59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const FlagName = "log-fwd-config"

FlagName contains the common log forwarding config command flag name

View Source
const LogFwdConfigHelpMessage = "A path to a log forwarding config file. This should be a YAML file with the" +
	" following structure:\n\n" +
	"cloudwatch:\n" +
	"  cloudwatch_log_role_arn: \"role_arn_here\"\n" +
	"  cloudwatch_log_group_name: \"group_name_here\"\n" +
	"  applications: [\"example_app_1\", \"example_app_2\"]\n" +
	"  groups: [\"group-name\", \"group_name-2\"]\n" +
	"s3:\n" +
	"  s3_config_bucket_name: \"bucket_name_here\"\n" +
	"  s3_config_bucket_prefix: \"bucket_prefix_here\"\n" +
	"  applications: [\"example_app_1\", \"example_app_2\"]\n" +
	"  groups: [\"group-name\"]"

Variables

This section is empty.

Functions

func BindS3LogForwarder

func BindS3LogForwarder(input *S3LogForwarderConfig) *cmv1.LogForwarderBuilder

func ConstructPodGroupsHelpMessage

func ConstructPodGroupsHelpMessage(options []*cmv1.LogForwarderGroupVersions) (s string)

func ConstructPodGroupsInteractiveOptions

func ConstructPodGroupsInteractiveOptions(options []*cmv1.LogForwarderGroupVersions) (l []string)

func LogForwarderObjectAsString

func LogForwarderObjectAsString(logForwarder *cmv1.LogForwarder) string

func TestLogforwarding

func TestLogforwarding(t *testing.T)

Types

type CloudWatchLogForwarderConfig

type CloudWatchLogForwarderConfig struct {
	Applications           []string `yaml:"applications,omitempty"`
	GroupsLogVersions      []string `yaml:"groups,omitempty"`
	CloudWatchLogRoleArn   string   `yaml:"cloudwatch_log_role_arn,omitempty"`
	CloudWatchLogGroupName string   `yaml:"cloudwatch_log_group_name,omitempty"`
}

CloudWatchLogForwarderConfig represents the log forward config for CloudWatch

type LogForwarderYaml

type LogForwarderYaml struct {
	S3         *S3LogForwarderConfig         `yaml:"s3"`
	CloudWatch *CloudWatchLogForwarderConfig `yaml:"cloudwatch"`
}

func UnmarshalLogForwarderConfigYaml

func UnmarshalLogForwarderConfigYaml(yamlFile string) (*LogForwarderYaml, error)

type S3LogForwarderConfig

type S3LogForwarderConfig struct {
	Applications         []string `yaml:"applications,omitempty"`
	GroupsLogVersions    []string `yaml:"groups,omitempty"`
	S3ConfigBucketName   string   `yaml:"s3_config_bucket_name,omitempty"`
	S3ConfigBucketPrefix string   `yaml:"s3_config_bucket_prefix,omitempty"`
}

S3LogForwarderConfig represents the log forward config for S3

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL