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

[Feature Request]: Split logs with newlines in HTTP transport #2509

Open
Gladear opened this issue Sep 10, 2024 · 0 comments
Open

[Feature Request]: Split logs with newlines in HTTP transport #2509

Gladear opened this issue Sep 10, 2024 · 0 comments
Labels
Feature Request Request for new functionality to support use cases not already covered Needs Investigation

Comments

@Gladear
Copy link

Gladear commented Sep 10, 2024

🔎 Search Terms

http batch

The vision

The batch mode of HTTP transport wraps entries in a JSON array. That's not to the taste of every platform, which may prefer NDJSON (Newline delimited JSON).

I'd like batch mode to support putting one JSON object per line.

Use case

My particular use case is to use with Grafana Loki, using Alloy's HTTP API (see doc). The Loki Push API requires a specific format, but the raw api works fine with NDJSON.

Additional information

No response

@Gladear Gladear added Feature Request Request for new functionality to support use cases not already covered Needs Investigation labels Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Request for new functionality to support use cases not already covered Needs Investigation
Projects
None yet
Development

No branches or pull requests

1 participant