Skip to content

Use Kubernetes API to scrape logs instead of reading log files from disk #23597

@GreyLilac09

Description

@GreyLilac09

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Use Cases

  1. Collect logs while running Vector as non-root
  2. Collect logs while running Vector as STS or Deployment

Attempted Solutions

Alloy employs this strategy to collect logs. We prefer Vector's configuration flexibility and metrics/non-Kube applications, so it would be very useful to have it in Vector.

Proposal

Create a new mode config on Kubernetes logs

This mode causes Vector to read logs via the Kubernetes API instead of reading it from files on disk.

References

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    source: kubernetes_logsAnything `kubernetes_logs` source relatedtype: featureA value-adding code addition that introduce new functionality.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions