下面的yaml用于从fluen-bit推送数据。在logstash日志中,数据正在到来,但logstash没有填充索引。Fluentbit使用VAC在tanzu集群中配置。
[INPUT]
Name tail
Path /data/logs/RestApiInfoLog*.json
Tag test-mgmt
Refresh_Interval 5
DB /data/fluent-bit/test-mgmt-taildb
read_from_head true
Multiline On
Mem_Buf_Limit 1048MB
Buffer_Max_Size 500MB
Buffer_Chunk_Size 400k
Parser_Firstline singleline
multiline.parser multiline-regex
[OUTPUT]
Name tcp
Match test-mgmt
Host xx.xx.xx.xx
Port 5052
字符串
在logstash conf文件中。
input {
tcp {
port => 5052
codec => json_lines
}
}
output{
if [tags] =~ "test-mgmt" {
elasticsearch {
hosts => ["https://127.0.0.1:9200"]
index => "test-mgmt-%{+YYYY.MM.dd}"
ssl_certificate_verification => false
user => "xxxxx"
password => "xxxxxx"
}
}
型
有人能在下面强调这个问题吗,为什么索引没有填充数据。
1条答案
按热度按时间brtdzjyr1#
尝试在Fluent-bit输出conf中定义以下方式,
字符串