Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

The shipper should report itself as FAILED when multiple outputs are configured. #171

@cmacknz

Description

@cmacknz

The shipper does not support multiple outputs. When multiple outputs are detected in the shipper configuration provided by the agent, the shipper should report itself as in the FAILED state on its next checkin with the agent.

Currently the behaviour configuration multiple outputs is to pick one based on an arbitrary ordering:

func outputFromConfig(config output.Config, queue *queue.Queue) (Output, error) {
if config.Elasticsearch != nil {
return elasticsearch.NewElasticSearch(config.Elasticsearch, queue), nil
}
if config.Kafka != nil && config.Kafka.Enabled {
return kafka.NewKafka(config.Kafka, queue), nil
}
if config.Console != nil && config.Console.Enabled {
return output.NewConsole(queue), nil
}
return nil, errors.New("no active output configuration")
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions