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

add Format: JSON Stream support #18883

Open
tqangxl opened this issue Oct 19, 2023 · 2 comments
Open

add Format: JSON Stream support #18883

tqangxl opened this issue Oct 19, 2023 · 2 comments
Labels
type: feature A value-adding code addition that introduce new functionality.

Comments

@tqangxl
Copy link

tqangxl commented Oct 19, 2023

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

Windows event log to VictoriaLogs
winlogbeat+Vector+VictoriaLogs

Vector:config
[sources.source_winlog_event]
type = "exec"
command = ["D:\Lib\Logs\1.winlogbeat-8.10.4-windows-x86_64\winlogbeat-8.10.4-windows-x86_64\winlogbeat.exe", "-c", "D:\Lib\Logs\1.winlogbeat-8.10.4-windows-x86_64\winlogbeat-8.10.4-windows-x86_64\winlogbeat-My.yml"]
mode = "streaming"

but:
https://docs.victoriametrics.com/VictoriaLogs/data-ingestion/#log-collectors-and-data-ingestion-formats

Log collectors and data ingestion formats

Here is the list of log collectors and their ingestion formats supported by VictoriaLogs:

How to setup the collector Format: Elasticsearch Format: JSON Stream Format: Loki
Filebeat Yes No No
Fluentbit No Yes Yes
Logstash Yes No No
Vector Yes No Yes
Promtail No No Yes

Log collectors and data ingestion formats Here is the list of log collectors and their ingestion formats supported by VictoriaLogs:

How to setup the collector Format: Elasticsearch Format: JSON Stream Format: Loki
Filebeat Yes No No
Fluentbit No Yes Yes
Logstash Yes No No
Vector Yes No Yes
Promtail No No Yes

Attempted Solutions

No response

Proposal

No response

References

No response

Version

No response

@tqangxl tqangxl added the type: feature A value-adding code addition that introduce new functionality. label Oct 19, 2023
@neuronull
Copy link
Contributor

Hello,

Are you using the http sink?

I see from the linked spec

VictoriaLogs accepts JSON line stream aka ndjson at http://localhost:9428/insert/jsonline endpoint.

Have you tried using the http sink with the json encoder, (https://vector.dev/docs/reference/configuration/sinks/http/#encoding.codec)

and the newline_delimited framing method? (https://vector.dev/docs/reference/configuration/sinks/http/#framing.method)

@hagen1778
Copy link

Thanks @neuronull @tqangxl !

I can confirm the following config works. Added example for configuring Vector to use VictoriaMetrics Json stream API here.

hagen1778 pushed a commit to VictoriaMetrics/VictoriaMetrics that referenced this issue Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A value-adding code addition that introduce new functionality.
Projects
None yet
Development

No branches or pull requests

3 participants