Skip to content
Discussion options

You must be logged in to vote

You can leverage format_timestamp().

thank u very much, it is solved ,my all config is as follows

data_dir = "/var/lib/vector"
#[sources.dummy_logs]
#type = "file"
#include = [ "/etc/vector/java.log" ]
[sources.dummy_logs]
type = "kafka" # required
bootstrap_servers = "127.0.0.1:9092" # required
group_id = "test-vector" # required
key_field = "vector_key" # optional, no default
auto_offset_reset = "latest"
commit_interval_ms = 2000
topics = ["java-test"] # required
#topics = ["nginx-test"] # required

# Parse Syslog logs
# See the Vector Remap Language reference for more info: https://vrl.dev
[transforms.parse_logs]
type = "remap"
inputs = ["dummy_logs"]
drop_on_error = true
source     …

Replies: 5 comments 12 replies

Comment options

You must be logged in to vote
5 replies
@uglyliu
Comment options

@uglyliu
Comment options

@spencergilbert
Comment options

@uglyliu
Comment options

@spencergilbert
Comment options

Comment options

You must be logged in to vote
3 replies
@spencergilbert
Comment options

@uglyliu
Comment options

@spencergilbert
Comment options

This comment was marked as off-topic.

Comment options

You must be logged in to vote
2 replies
@spencergilbert
Comment options

@uglyliu
Comment options

Comment options

You must be logged in to vote
2 replies
@spencergilbert
Comment options

@uglyliu
Comment options

Answer selected by spencergilbert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants