Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the shipper as an instance of Filebeat configured to use the shipper protocol input #2521

Closed
Tracked by #16
cmacknz opened this issue Apr 19, 2023 · 1 comment
Labels
Team:Elastic-Agent Label for the Agent team

Comments

@cmacknz
Copy link
Member

cmacknz commented Apr 19, 2023

This is the companion issue for elastic/beats#35135 where we will implement a shipper gRPC input for Filebeat.

Currently the shipper is implemented with the elastic-agent-shipper binary defined in https://github.com/elastic/elastic-agent-shipper. We want to simplify the shipper implementation to a shipper protocol input in Filebeat.

When the shipper feature flag is set for an output in an agent policy, the agent should start an instance of Filebeat. This is the configuration used to enable the shipper for reference:

outputs:
  default:
    type: elasticsearch
    hosts: https://localhost:9200
    shipper:
       enabled: true

For now, we can continue to send the same set of input and output units to the Filebeat based shipper that we were sending to the previous implementation of the shipper. This may change based on the design in elastic/beats#35135.

At a minimum, the Filebeat spec file will need to be modified to declare that it supports the new shipper gRPC input and also that it implements the data shipper as is currently done in https://github.com/elastic/elastic-agent-shipper/blob/main/elastic-agent-shipper.spec.yml#L2-L21:

shippers:
  - name: shipper
    description: "Elastic Agent Shipper"
    platforms:
      - linux/amd64
      - linux/arm64
      - darwin/amd64
      - darwin/arm64
      - windows/amd64
      - container/amd64
      - container/arm64
    outputs:
      - elasticsearch
      - kafka
      - logstash
      - redis
    command: &command
      args:
        - "-E"
        - "logging.level=info"

After this change the agent will see two binaries declaring that the implement the shipper, Filebeat and elastic-agent-shipper. We should remove the shipper support block above from the elastic-agent-shipper repository to avoid this conflict.

We will remove the elastic-agent-shipper binary from the agent packaging and release jobs separately once we have proven that the Filebeat based approach works.

@jlind23
Copy link
Contributor

jlind23 commented May 27, 2024

Closing this as it is not relevant anymore.
cc @ycombinator

@jlind23 jlind23 closed this as not planned Won't fix, can't repro, duplicate, stale May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

No branches or pull requests

4 participants